Answer the question
In order to leave comments, you need to log in
Output of two errors to one field?
Hello.
What is the reason for displaying two errors to the field?
For example, there is an e-mail field, in rules there is a rule for an empty field, and an invalid e-mail format.
It is possible to display two errors if there is a rule:
array('uemail','email','message'=>'не верный формат'),
array('uemail','required','message'=>'пусто'),
Answer the question
In order to leave comments, you need to log in
You won’t get two errors at once, the rules are checked in turn. I advise you to first put array('uemail','required'),
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question