FormElement.php 564 Bytes
Newer Older
1  
semenov committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
<?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;

use Yii;
use yii\base\Model;

/**
 * Login form
 */
class FormElement extends Model
{
    public $label;

    public $attribute;

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            // username and password are both required
            [['attribute', 'label'], 'string'],
        ];
    }


}