you might also want to have a look at bindModel
http://book.cakephp.org/view/86/Creating-and-Destroying-Associations-on-the-Fly
On May 21, 10:27 am, "Dave Maharaj :: WidePixels.com"
wrote:
> I have 5 or 6 empty controllers. I merged all the admin functions to the
> app_controller and these cont
I like Grigri's generic controller approach for eliminating empty
controllers:
http://groups.google.com/group/cake-php/browse_thread/thread/7638b690ae0545ff/1845d3c1c30d3a03?lnk=gst&q=generic+controller#1845d3c1c30d3a03
disclaimer - although it's on my list to implement, I haven't gotten
to it y
No, you can't. If you remove them you will get a controller not found
error when you go to your bookmarks pages
On a side note, you can remove the $uses line as CakePHP automatically
adds the model associated with the controller (unless your
AppController explicitly sets $uses = array() )
On May
I have 5 or 6 empty controllers. I merged all the admin functions to the
app_controller and these controllers now have no functions inside them.
For example my bookmarks controller is simply
Auth->autoRedirect = false;
}
}
?>
These controllers all have models that are needed but can remov