Hope this helps:
http://groups.google.com/group/cake-php/browse_thread/thread/b3233665ad126fa7/79b31d15345cdfd1?lnk=gst&q=to+model+or+not+to+model#79b31d15345cdfd1

On Sep 24, 2:17 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On Wed, Sep 24, 2008 at 12:14 PM, techiguy <[EMAIL PROTECTED]> wrote:
>
> > $this->User->query("insert into users(id,name) values ($id,$name)");
>
> IMO - The ideal way would be to first figure out if you can get by
> with using the standard model functions and avoid writing a query.
> However if you do need to write a query prefer creating a method in
> the model and writing it there.
>
> Follow the thumbrule of Fat Models and Thin Controllers
>
> HTH
>
> 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 
"CakePHP" 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