Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About kardais

  • Rank
  1. Thank you very much, Edward. It is clear to me now. Regards, Kardais
  2. Page 86 says: As with almost everything in Yii, if you don’t like the default response, you can easily change it. To change the default error message for an attribute, assign a new value to the message property: array('email', 'email', 'message'=>'You must provide an email address to which you have access.'), array('pass', 'match', 'pattern'=>'/^[a-z0-9_-]{6,20}$/', 'message'=>'The password must be between 6 and 20 characters long and can only contain letters, numbers, the underscore, and the hyphen.'), I am still unclear with this passage, where must I put that statement?
  3. 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
  • Create New...