Hello.

I need to translate the error messages. I have this in my model:

var $validate = array(
       'username' => array(
           'between' => array(
              'rule' => array('between', 4, 10),
              'last' => true
           ),
           'unique' => array(
              'rule' => 'isUnique'
           )
      )
);

And this in my view:

echo $form->input('username', array('error' => array('between' => _
('Between 4 and 10.', true), 'unique' => _('Existing User', true)));

But do not show these error messages. Shown are the error messages by
default. But if I put only an error message then it is displayed.

echo $form->input('username', array('error' => _('Between 4 and 10.',
true)));

What may be happening. Is it a bug?. Does anyone have the same
problem?.

Thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to