I'd find it particularily useful too, since I don't understand how we're
supposed to override these messages the zend way.
Regards,
-- Nicolas
Neil Garb a écrit :
> 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
没有评论:
发表评论