ZF: How can I modify the error message for the required / notempty validator in the ini file
- by heininger
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.