This is why I always recommend to do view-side validation messages.

Check the article in the bakery:

http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-per-fie
ld-in-cakephp-1-2

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de francky06l
Enviado el: MiƩrcoles, 27 de Junio de 2007 01:47 p.m.
Para: Cake PHP
Asunto: Cake 12, validation message and L10N

I am working on the validation in cake12, powerfull !
I am using the l10n for multi language, and I set some custom message
into the $validate :

 array('rule' => ....,
         'message' => 'erroruser');

Actually I can't use the __('erroruser') in the model definition for
var $validate (unless I missed something somewhere), bug going deeper
I found out that modifying the line (in model.php, method invalidate,
lime 1739 of SVN branch) as follow :


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to