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:
[...]
$validators = array(
'login' => array(
'AlNum',
'presence' => 'required',
'messages' => array(
Zend_Validate_Alnum::NOT_ALNUM => 'O login apenas pode conter caracteres alfanuméricos [a..z][A..Z][0..9]!',
Zend_Validate_Alnum::STRING_EMPTY => 'O login é de preenchimento obrigatório!'),
'password' => array(
'presence' => 'required',
'messages' => 'A password é de preenchimento obrigatório!'
),
'email' => array(
'EmailAddress',
'presence' => 'required',
'messages' => 'O endereço de correio electrónico indicado não é válido!'
),
[...]