R
R
Rustam Idrisov2016-08-30 00:27:58
Yii
Rustam Idrisov, 2016-08-30 00:27:58

How to implement form validation in Yii2?

Good afternoon friends!
Question in the following:
There was an html-template of page with the form, check of input of fields happened by means of JavaScript.
Then I translated the template into Yii2, but I don't understand how to make the same display of messages about erroneous data entry now.
The validate method is used, but it does not display a message that the data entered in the field is incorrect.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
yurygolikov, 2016-08-30
@RustaMechanic

Here is a simple example from the official documentation.
https://github.com/ygolikov/yii2/blob/master/docs/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question