Commit 9aa4c8eb by semenov

new module

parent 5f45078a
<?php
/**
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 15.03.2015
*/
namespace skeeks\modules\cms\form\controllers;
use skeeks\cms\base\Controller;
/**
* Class BackendController
* @package skeeks\modules\cms\form\controllers
*/
class BackendController extends Controller
{
public function actionSubmit()
{
}
}
\ No newline at end of file
......@@ -122,4 +122,9 @@ class Form extends Core
public function render()
{
}
}
\ No newline at end of file
<?php
/**
* LoginForm
*
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010-2014 SkeekS (Sx)
* @date 28.10.2014
* @since 1.0.0
*/
namespace skeeks\modules\cms\form\models\forms;
use Yii;
use yii\base\Model;
/**
* Login form
*/
class EmailForm extends Model
{
public $value;
/**
* @inheritdoc
*/
public function rules()
{
return [
// username and password are both required
[['value'], 'required'],
// rememberMe must be a boolean value
['value', 'email'],
];
}
}
......@@ -64,6 +64,7 @@ use common\models\User;
],
'controllerRoute' => 'form/admin-form-field',
'gridViewOptions' => [
'sortable' => true,
'columns' => [
//['class' => 'yii\grid\SerialColumn'],
'attribute',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment