S
S
Sergey2015-03-18 12:35:39
Yii
Sergey, 2015-03-18 12:35:39

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

1 answer(s)
M
Maxim Grechushnikov, 2015-03-18
@butteff

if(!$model->save())
print_r($model->errors);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question