Jump to content
Larry Ullman's Book Forums

kardais

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by kardais

  1. 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?
     
    Best Regards,
    Kardais
×
×
  • Create New...