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