I have a validation:
public function rules() { return [ [ ['login','email','password_1','password_2'],'required','message' => 'Это поле не может быть пустым.'], ['email','email','message' => 'Электронная почта не является действительным адресом электронной почты.'], ['email','unique','targetAttribute' => 'email','targetClass' => 'app\models\User','message' => 'Такой логин уже зарегистрирован'], ]; } There is also a field in the form
<?= $form->field($model,'email')->textInput() ?> There is a class ActiveRecord (User) There is a table in the meringue with such a field
What is it not working?