M
M
Mikha Pankratov2015-12-21 21:23:58
Yii
Mikha Pankratov, 2015-12-21 21:23:58

How to properly override validation in yii2?

Good evening,
such a question:
I have rules described in the model, but for one page, for example, 1.3, the field must be requare and for the other 4.5.
How do I override the validation method? As detailed as possible, please, or click on the required point of the docks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sunrails, 2015-12-21
@sunrails

You need scripts https://github.com/yiisoft/yii2/blob/master/docs/g...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question