You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 lines
333 B

<?php
/**
* Created by Error202
* Date: 10.02.2018
*/
namespace core\forms;
use yii\base\Model;
class SubscribeForm extends Model
{
public $email;
public function rules() {
return [
['email', 'required'],
['email', 'email'],
];
}
public function attributeLabels() {
return [
'email' => 'E-mail',
];
}
}