Код: Выделить всё
public function rules()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
array('name', 'required'),
array('name', 'match', 'pattern' => '/^([a-z-\sа-яәіңғүұқөһё]{2,30})$/i','message' => 'Name содержит недопустимые символы.'),
)
// Some code here.....
}
Хотя на Vasya не ругается.. Подскажите, что я делаю не так. Кодировка файла модели - UTF-8 без BOM.