F
F
fman22015-12-14 14:40:15
Yii
fman2, 2015-12-14 14:40:15

How to do this kind of validation in Yii2?

Good afternoon.
Yii2 has an Exist validator that checks that if there is no such entry, throw an error.
Tell me, please, how to check the opposite in the model, what if there is such a record - to display an error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
holfza, 2015-12-14
@fman2

www.yiiframework.com/doc-2.0/yii-validators-unique...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question