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 21, 3:27 pm, "Dave Maharaj :: WidePixels.com"
<[email protected]> wrote:
> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to