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
<?php
  class BookmarksController extends AppController
  {
      var $name = 'Bookmarks';
      var $helpers = array('Html', 'Form');
      var $uses = array('Bookmark');

      function beforeFilter()
      {
          parent::beforeFilter();
          $this->Auth->autoRedirect = false;
      }
}
?>
 
These controllers all have models that are needed but can remove these
controllers from the app? 
 
Dave

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to