Re: Un-needed Controllers

2009-05-21 Thread JamesF
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

Re: Un-needed Controllers

2009-05-21 Thread keymaster
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

Re: Un-needed Controllers

2009-05-21 Thread rich...@home
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

Un-needed Controllers

2009-05-21 Thread Dave Maharaj :: WidePixels.com
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