|
|||
|
I tried to validate my input and translate the validation messages to Portuguese, but the AlNum filter is ignoring my message!
The output I get, using an empty form is: Code:
'' is an empty string! A password é de preenchimento obrigatório! O endereço de correio electrónico indicado não é válido! PHP Code:
NOTE: If i change AlNum to EmailAddress or remove that filter I get the right text. |
|
|||
|
Try Alnum instead of AlNum.
|
|
|||
|
Same result. The validation is working, it's just ignoring my message...
I'll have a look at the Zend_Filter classes maybe I can find out what's the difference between Alnum and the others... EDIT: It's working now. I thought there was only one message needed per rule, but I had to submit one message per internal message of the filter to get it working. (In the Alnum case, The EmailAdress works fine as it is...) PHP Code:
Last edited by kias : 08-16-2007 at 01:01 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|