hi guys,
if we have written queries directly in to the controller (users) will
this voilates the MVC architecture??
i have written in my users_controller.php like this
$this->set('users',$this->User->query("select * from users"));
or if i use like this
$this->User->query("insert into users(id,name) values ($id,$name)");
if we write direct queries in controller will it voilates the MVC
acrhitecture?
do any one know what to write in controller and what to write in
model ?
Thx
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---