Hi all,
Is it possible to have a controller that doesn't map directly to a
model or database table? I want an admin section for my website where
I can edit users and other models, it'll hook into existing models
rather than having its own.
Thanks
Tim
Hi Tim,
Is it possible to have a controller that doesn't map directly to a
model or database table? I want an admin section for my website where
I can edit users and other models, it'll hook into existing models
rather than having its own.
Add var $uses = array(); to your controller.
--
Thanks Daniel, it's so obvious once it's been pointed out!
Daniel Hofstetter wrote:
Hi Tim,
Is it possible to have a controller that doesn't map directly to a
model or database table? I want an admin section for my website where
I can edit users and other models, it'll hook into
you can use any number of existing models like this
App::import('Model', 'Product');
$tmpProduct = new Product();
$tmpProduct-find();
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this