Rob Allen-3 wrote:
> 
> 
> In addition to Matthew's solution, I was much lazier and simply  
> extended Zend_Validate_EmailAddress and overrode the error text:
> 
> class App_Validate_EmailAddress extends Zend_Validate_EmailAddress
> {
>      protected $_messageTemplates = array(
>          self::INVALID            => "%value% is not a valid email
> address",
>          self::INVALID_HOSTNAME   => "%value% is not a valid email
> address",
>          self::INVALID_MX_RECORD  => "%value% is not a valid email
> address",
>          self::DOT_ATOM           => "%value% is not a valid email
> address",
>          self::QUOTED_STRING      => "%value% is not a valid email
> address",
>          self::INVALID_LOCAL_PART => "%value% is not a valid email
> address"
>      );
> }
> 
> Again, you need to do set your element prefix path.
> 
> Regards,
> 
> Rob...
> 
> 

Thanks Rob. As in my example above, wouldn't you see the same error message
'[EMAIL PROTECTED] is not a valid email address' 4 times?

-- 
View this message in context: 
http://www.nabble.com/Zend_Form-validation-messages-tp16467524p16525456.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to