Have a look at config/bootstrap.php. You can specify $modelPaths, $viewPaths and $controllerPaths arrays for additional locations for all those files.
But you should ask yourself if this is really a good idea. The default structure is designed very carefully and makes sense in 99% of applications. Each framework has its own way of organising files and all CMSs have their own very different ways too. Having said that, I've been using those arrays to specify one additional location where all the files relating to the admin (CMS) part of sites. This is making it easier for me to maintain the admin part which is common to all the sites I develop. Hope this helps. On Oct 21, 7:32 pm, rakisisesindekibalik <[EMAIL PROTECTED]> wrote: > Thanks for the answer and one more question. > > Can I store those plugins in a sepparate directory. I know I can > change name of app directory. But I really want my custom "plugins" to > be stored in a diffrent place > Desired directory structure would be like this > > www/cake/app .... etc. > www/plugins/xxx > > I want to build a structure like most CMS have. > > On Oct 21, 9:16 pm, acoustic_overdrive <[EMAIL PROTECTED]> > wrote: > > > You can create "plugins" in cake which go like this: > > > app/plugins/xxx/controllers/ > > app/plugins/xxx/models/ > > app/plugins/xxx/views/ > > > how about that? > > > On Oct 21, 5:06 pm, rakisisesindekibalik > > > <[EMAIL PROTECTED]> wrote: > > > Hi guys; > > > > I have been looking at CakePHP for a few days. I understand how > > > applications work but I have question. In default configuration we > > > keep our controllers in ./app/controllers, models in ./app/models, > > > views in ./app/views and etc. > > > > Bu I wonder if there is a way to store those files in ./app/xxx/ > > > controllers, ./app/xxx/models,... etc. > > > > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
