Hi ZF-MVC
Would anyone else find it useful to be able to change validator messages in a static context?
Use case:
I don't like 'Value is empty, but non-empty value is required' in Zend_Validate_NotEmpty
I specify in my controller's init() function: Zend_Validate_NotEmpty::setMessageTemplate('Please fill in this field', 'isEmpty');
This is most valuable for the notempty and inarray validators, which get instantiated automatically by the form validation routines.
- Neil
2009年5月20日星期三
订阅:
博文评论 (Atom)
没有评论:
发表评论