Email validation messages
Thomas Weidner has posted an article about how to set your own validation messages when validating emails.
It turns out that it’s quite tricky to do as ZendValidateEmailAddress uses ZendValidateHostname behind the scenes. He documents how it will be much easier to do in ZF 1.10:
I added a new feature which is available as with Zend Framework 1.10. With it you can set hostname messages from within the email validator… the above code can then be simplified to:
$validator = new Zend_Validate_EmailAddress();
$validator->setMessages(
array(
Zend_Validate_Hostname::UNKNOWN_TLD => 'I don't know your TLD',
Zend_Validate_Hostname::INVALID_HOSTNAME => 'I don't know your hostname'
Zend_Validate_EmailAddress::INVALID => 'Are you sure this is a email address?'
)
Very useful stuff.

