Top "Yii2-validation" questions

Use this tag if your question relates to the Yii2-validation-system, no matter if your validation is within a model or as standalaone validator-instances.

Yii2: How to set default attribute values in ActiveRecord?

This may seem like a trivial question, however all of the obvious solutions that I can think of have their …

activerecord yii2 yii2-model yii2-validation
Yii2, Custom validation message with attribute names

In Login form, I need to have glyphicon-remove icon at the end of every validation message with the corresponding field …

php yii2 yii2-model yii2-validation
Validate form by ajax in yii2

I have a form which is opening in popup so I want to validate my form by ajax validation but …

php yii2 yii2-validation
Yii2: compare validation of password and repassword

I'm a beginner of Yii, that's why can't figure out, what's wrong. I use the same model - Users - …

php yii2 yii2-basic-app yii2-validation
How to create a directory inside a directory in yii2 and upload file into that directory

I have a form <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?> <?php echo $form-&…

yii2 yii2-advanced-app yii2-basic-app yii2-model yii2-validation
Invalid validation rule: a rule must specify both attribute names and validator type, in Yii2

In my basic app project, I'm trying to integrate the signup form, I'm getting this error: Invalid validation rule: a …

yii2 yii2-basic-app yii2-user yii2-validation