Tuesday, November 27, 2012

setting custom error messages for validators in all my projects

Hi,

I'm starting two different projects using cake, but there are several validations in my forms that will be the basically the same, like notempty for exemple. I will use Bake to generate my CRUDs.

What I need to know is if there is any option to set custom message errors for those default validators and some how don't need to set it in every single model in both projects. 

There is some option to set custom messages for validators in some place and it Cake display everytime I use this validator?

Best regards,
Vitor.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
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+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: