I
I
Ivan Petrov2017-06-16 19:02:05
Yii
Ivan Petrov, 2017-06-16 19:02:05

How to properly validate in Yii 1?

Hello. I didn’t quite understand from the documentation how to organize validation in my case. For example, in my view I have a search in a table with cities, and if I keep a city that is not in the database, I need to display an error message. How to implement correctly without breaking MVC ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question