M
M
MiroMichail2016-10-04 15:39:38
Yii
MiroMichail, 2016-10-04 15:39:38

Why do I get repeated error messages when validating a model in Yii?

When validating the model for some fields that have the required rule, error messages are repeated. The standard validate method for the model is used. Has anyone encountered a similar problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mitaichik, 2016-10-04
@mitaichik

Не должно. Может у вас несколько required валидаторов на одно поле навешанно? Скиньте код метода rules

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question