Models dictate business logic in regards to data, which means information
such as how to fetch data, save it, or validate it.

Views on the other hand dictate how that data is presented to user, which
amongst other things indicate how to present data that is not validating
model's business rules.

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.


--~--~---------~--~----~------------~-------~--~----~
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