Neil - you're right on, put that logic in the model, that way it can be reused if you need it elsewhere and changed in one place.
On Feb 2, 9:53 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On Feb 2, 2008 9:35 PM, Neil <[EMAIL PROTECTED]> wrote: > > > > > I want to count some data from my database and then display the amount > > in my view. > > From reading the manual I would think the proper MVC was would be to > > make a function in my Model that counts the records in the field and > > then use the controller to send the result of that Model function to > > my view. > > FWIW - This is what I would do - thumbrule is Fat Models - thin controllers > > Tarique > > -- > ============================================================= > Cheesecake-Photoblog:http://cheesecake-photoblog.org > PHP for E-Biz:http://sanisoft.com > ============================================================= --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
