thanks, that's what I'm looking for. I'm not all that worried about the actual url. I just wanna organize my code a bit better.
Is there a way to put view templates into directories as well? I tried just moving it to subdirectories but that gives me an error. I suppose I could change the viewpath in the controller but I was wondering if there is a prettier solution to this. On Apr 9, 2:44 pm, Daniel Hofstetter <[EMAIL PROTECTED]> wrote: > 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/subdire... > > 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 Hofstetterhttp://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 -~----------~----~----~----~------~----~------~--~---
