ZF: How can I modify the error message for the required / notempty validator in the ini file

Posted by heininger on Stack Overflow See other posts from Stack Overflow or by heininger
Published on 2010-03-24T09:48:38Z Indexed on 2010/03/24 9:53 UTC
Read the original article Hit count: 391

Filed under:
|
|
|
|

I'ld like to configure my forms using config with an ini file. I need individualized error messages like the following one:

suche.elements.methode.options.validators.strlen.options.messages.stringLengthTooLong = "Der Suchbegriff '%value%' ist zu lang!"

This works well for strlen and regex, but how do I set it up for "required" elements? I tried stuff like

suche.elements.methode.options.validators.notempty.options.messages.isEmpty = "Der Suchbegriff darf nicht leer sein!"

but this throws exceptions.

© Stack Overflow or respective owner

Related posts about zend

Related posts about framework