MI, since you guys are on this topic. I tried to look around the codes but it seems that it wouldn't be easy to make Form::error display the default message defined in the Model when no message is defined in the View right? In other words, can the error message in the View "overwrite" the message defined in the Model when supplied?
Also, is there a way to supplied allowEmpty as an overall toggle rather than repeat the same value across multiple rules? See: http://bin.cakephp.org/view/505983165 Since if allowEmpty were to be true, it would be related to the field "contact" instead of the actual "rule" right? On 5/18/07, Derick Ng <[EMAIL PROTECTED]> wrote: > > MI, since you guys are on this topic. I tried to look around the codes but > it seems that it wouldn't be easy to make Form::error display the default > message defined in the Model when no message is defined in the View right? > In other words, can the error message in the View "overwrite" the message > defined in the Model when supplied? > > Also, is there a way to supplied allowEmpty as an overall toggle rather > than repeat the same value across multiple rules? > > See: http://bin.cakephp.org/view/505983165 > > Since if allowEmpty were to be true, it would be related to the field > "contact" instead of the actual "rule" right? > > On 5/18/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > > > > > Update to latest SVN branch. > > > > -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 yangz > > Enviado el: Jueves, 17 de Mayo de 2007 09:20 p.m. > > Para: Cake PHP > > Asunto: Re: 1.2 error message from form::input > > > > Im using CakePHP 1.2.0.4798 alpha > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
