It's good to know there's a way to customize the paths for models,
views and controllers (I might use that option as well), but is there
REALLY no way to organize components in subfolders? That would really
be a solution for me, because I use components a lot.

Anyway, the elements solution is already really working out!


On 4 apr, 19:32, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> I think he was asking about organizing you components folder with sub-folders
>
> On 4/4/07, majna <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Works for views, models, controllers and (test it) components.
> > Put this to config/bootstrap.php
> > Only add your custom paths...
>
> > $modelPaths = array(APP.'myFolder'.DS.'models'.DS);
> > $viewPaths = array(APP.'myFolder'.DS.'views'.DS);
> > $controllerPaths = array(APP.'myFolder'.DS.'controllers'.DS);
> > $helperPaths = array(APP.'myFolder'.DS.'views'.DS.'helpers'.DS);
>
> > On Apr 4, 5:07 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> > > mainly I use it to keep admin stuff together, menu pieces together and
> > > form elements together
>
> > > I don't think it works for helpers or components (but does for vendors)
>
> > > On 4/4/07, gerbenzomp <[EMAIL PROTECTED]> wrote:
>
> > > > Oops! I figured that wouldn't be possible, because I never saw anyone
> > > > do it. I'll try it!
>
> > > > Good to hear you're doing it all the time, I thought this would be a
> > > > really strange question ;)
>
> > > > Is it also possible for components?
>
> > > > Gerben.
>
> > > > On 4 apr, 16:54, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> > > > > I use sub folders all the time
>
> > > > > $this->renderElement('this/that/and/the/other/thing');
>
> > > > > Did you try it and not have it work?
>
> > > > > On 4/4/07, gerbenzomp <[EMAIL PROTECTED]> wrote:
>
> > > > > > Maybe a strange question, but is there a way I can have subfolders 
> > > > > > in
> > > > > > the elements folder? I have so many elements I really need a way to
> > > > > > organize them. Right now I give the elements a prefix_ but but 
> > > > > > putting
> > > > > > them in subfolders would be so much easier, and easier to read.
>
> > > > > > Or do I have to change the core code? I do have the themeable view
> > > > > > class installed, so maybe I could change some paths there?
>
> > > > > --
> > > > > (the old fart) the advice is free, the lack of crankiness will cost 
> > > > > you
>
> > > > > - its a fine line between a real question and an idiot
>
> > > > >http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
>
> > > --
> > > (the old fart) the advice is free, the lack of crankiness will cost you
>
> > > - its a fine line between a real question and an idiot
>
> > >http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
>
> --
> (the old fart) the advice is free, the lack of crankiness will cost you
>
> - its a fine line between a real question and an idiot
>
> http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/


--~--~---------~--~----~------------~-------~--~----~
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