Re: Overriding form helper error messages in CakePHP 2.0

2012-08-10 Thread William Notowidagdo
Hi Richard, Same here. I'm using 2.2.1. Though the doc said we can do that http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html On Monday, October 24, 2011 9:44:33 PM UTC+7, Richard@Home wrote: > > Hi all. > > I have the following $validate in my User model: > > var $validat

Re: Overriding form helper error messages in CakePHP 2.0

2011-10-28 Thread Jeremy Burns | Class Outfit
Just did some testing. It worked for a rule 'notempty' but is ignored for the rule 'unique' (or isUnique). Jeremy Burns Class Outfit http://www.classoutfit.com On 28 Oct 2011, at 16:43, Richard@Home wrote: > Shamless bump! > > On Oct 24, 3:44 pm, "Richard@Home" wrote: >> Hi all. >> >> I hav

Re: Overriding form helper error messages in CakePHP 2.0

2011-10-28 Thread Richard@Home
Shamless bump! On Oct 24, 3:44 pm, "Richard@Home" wrote: > Hi all. > > I have the following $validate in my User model: > >         var $validate = array( >                 'email'=>array( >                         'required'=>array( >                                 'rule'=>'notEmpty', >        

Overriding form helper error messages in CakePHP 2.0

2011-10-24 Thread Richard@Home
Hi all. I have the following $validate in my User model: var $validate = array( 'email'=>array( 'required'=>array( 'rule'=>'notEmpty', 'message'=>'cannot be blank'