Le 03/02/11 10:08, Jachim Coudenys a écrit :
> If you want to see the message, you should add '' => '' as the first item in the array.
As far as I remember '' is casted to 0, and NotEmpty doesn't consider 0
as empty (as PHP does) but I see some change about this so I may be wrong.
However, you may want to use InArray validator, add a default option
(Please select a topic) and validate result from 5 to 9.
Regards,
没有评论:
发表评论