Categories
How to check form validation errors in yii2?
We need functions\methods on the backend or callbacks on the frontend to get the error text for further work with them. With standard jquery tools, they say , this cannot be done.
Answer the question
In order to leave comments, you need to log in
if(!$model->save()) print_r($model->errors);
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question