Controller without model/table possible?

2008-02-05 Thread Tim W
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

Re: Controller without model/table possible?

2008-02-05 Thread Daniel Hofstetter
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. --

Re: Controller without model/table possible?

2008-02-05 Thread Tim Wild
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

Re: Controller without model/table possible?

2008-02-05 Thread Rgarg
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