mike091 wrote:

> So is this best setup in the model rather than the controller?

In my opinion, yes.

Others will differ of course.

I like to keep all strictly data related operations in the model so that 
they're pretty much invisible for the controller.  I do this because I 
think that these sorts of data related operations are bound more to the 
data layer and you likely (I don't know your situation, obviously) want 
to enforce this sort of behaviour across your entire application rather 
than repeat it every time you need it (in a controller).


HTH,

Matt
-- 
BASIC: A programming language.  Related to certain social diseases
in that those who have it will not admit it in polite company.

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

Reply via email to