You can create admin folder inside controllers folder:
controllers/admin. Cake will find it.

You can extend controller with admin controller like this.

controllers/users_controller.php:
class UsersController extends AppController
{

}

controllers/admin_users_controller.php:
App::import('Controller', 'Users');
class AdminUsersController extends UsersController
{

}

Consider using cake Admin routing feature.
http://book.cakephp.org/view/544/Prefix-Routing

You can use additional MVC path as described in config/bootstrap.php
to regroup files in folders

On Mar 25, 2:33 am, Graham Weldon <[email protected]> wrote:
> The only reasnon I can think you would want to so this is to either  
> group functionality or to make your URL's look pretty.
>
> In the case you at trying to group functionality, look into creating  
> plugins for your controllers.
>
> If you are simply trying to control URL presentation, then you need to  
> look into routing.
>
> Cheers
> Graham
>
> On 25/03/2009, at 12:21 PM, Ranju <[email protected]> wrote:
>
>
>
> > Hello
>
> > I want to  create sub controller like create admin panel.within
> > controller folder create admin folder then create admin controller.
> > which type possible this.
>
> > thanks
--~--~---------~--~----~------------~-------~--~----~
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