Hi Marc,

> I'm wondering if it is is somehow possible to put controllers into
> subdirectories.
> sort of 
> likewww.cakeapp.com/subdirectory/controller/actionwww.cakeapp.com/subdirectory2/controller/action
> and have the same for the views.
>
> It is not really essential but in large apps with lots of controllers
> it would be good if it was possible to put them in groups.

At the file level you can simply create subdirectories in the "app/
controllers" folder and put your controllers into those folders. But
this doesn't have any effect on the url, i.e. the url is always
example.com/controller/action. If you also want to change the urls,
you have to define some routes in "app/config/routes.php".

Hope that helps.

--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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