May be at sometime in future CakePHP will have to move to a Validator interface
Something like class modelNameValidator implements Validator in which the programmer will have to write the validate method and it is this Validator interface, which both Model and View have access, will contain the Error messages... Tarique On 4/22/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > In the end, proper MVC behavior is to keep validation rules with models, and > error messages with views. > > -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 [EMAIL PROTECTED] > Enviado el: Domingo, 22 de Abril de 2007 03:58 a.m. > Para: Cake PHP > Asunto: Re: where to change or add 'This field cannot be left blank' such > validate msg? > > thx for both > > dericknwq and Mariano Iglesias. > > and I think dericknwq 's way is better for my consideration cause the > msg living with the rule makes more sense. > > > > > -- ============================================================= PHP for E-Biz: http://sanisoft.com Cheesecake-Photoblog needs you!: http://cheesecake-photoblog.org ============================================================= --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
