Answer the question
In order to leave comments, you need to log in
I write the code according to the lessons, why the error?
The actual code
public $name;
public $email;
public $text;
public function attributeLabels() {
return[
'name'=>"Имя",
'email'=>"E-mail",
'text'=>"Текст сообщения",
];
}
public function rules() {
return[
[['name','email']=>'required'] //ERROR Illegal offset type
];
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question