kardais
-
Posts
3 -
Joined
-
Last visited
Posts posted by kardais
-
-
Page 86 says:
As with almost everything in Yii, if you don’t like the default response, you caneasily change it. To change the default error message for an attribute, assign a newvalue to the message property:array('email', 'email','message'=>'You must provide an email addressto which you have access.'),array('pass', 'match', 'pattern'=>'/^[a-z0-9_-]{6,20}$/','message'=>'The password must be between 6 and 20 characterslong and can only contain letters, numbers, the underscore,and the hyphen.'),I am still unclear with this passage, where must I put that statement?Best Regards,Kardais -
Where does parameter "message" come from? I am going to change the default YII error message, but I didn't find the parameter in the models generated by YII.
Thanks in advance,
Kardais
Parameter "Message" On Chapter 5
in The Yii Book
Posted
Thank you very much, Edward. It is clear to me now.
Regards,
Kardais