Tuesday, December 20, 2011

Re: Organizing Controllers into subfolders in CakePHP 2

Well my question is, why do you have so many controllers?

Secondly, use plugins. Its basically a more advanced replacement for
what you need.

On Dec 20, 12:41 pm, Brad Koch <bradkoch2...@gmail.com> wrote:
> Alright, that makes sense.  Point of clarification, what's the
> preferred convention on this now then?  Should you abstain from
> organizing your files into subdirectories, even if it means you end up
> with 100 controllers in the same directory?  Or is there some other
> recommended way of organizing them?
>
> On Dec 20, 3:14 pm, "Larry E. Masters" <php...@gmail.com> wrote:
>
>
>
>
>
>
>
> > As we are moving CakePHP closer to a version of PHP the supports namespaces
> > the decision was made now to remove this "feature". We also started
> > following the PSR-0 for CakePHP 2.0 and above, to comply with it we would
> > have needed to remove them anyway.
>
> > --
> > Larry E. Masters
>
> > On Tue, Dec 20, 2011 at 1:53 PM, Brad Koch <bradkoch2...@gmail.com> wrote:
> > > That works, but I'm still curious as to what exactly happened to this
> > > feature, as it seemed to be widely promoted:
> > > *
> > >http://groups.google.com/group/cake-php/browse_thread/thread/95da5e67...
> > > *http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/
> > > *
> > >http://holisticnetworking.net/cake/2010/06/organizing-your-cakephp-fi...
>
> > > On Dec 20, 2:14 pm, Thiago Belem <cont...@thiagobelem.net> wrote:
> > > > Maybe this can help:
>
> > > >http://book.cakephp.org/2.0/en/development/configuration.html#bootstr...
>
> > > > This file is ideal for a number of common bootstrapping tasks:
>
> > > >    - Defining convenience functions.
> > > >    - Registering global constants.
> > > >    - Defining additional model, view, and controller paths.
> > > >    - Creating cache configurations.
> > > >    - Configuring inflections.
> > > >    - Loading configuration files.
>
> > > > --
> > > > ***Thiago Belem*
> > > > Desenvolvedor
> > > > Rio de Janeiro - RJ - Brasil
>
> > > > +55 (21) 8865.9250
> > > > thiagobelem.net
> > > > cont...@thiagobelem.net
>
> > > > *Skype / gTalk **»* thiago.belem.web
> > > > *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt*
> > > > Assando Sites*, curso de CakePHP *»* assando-sites.com.br
>
> > > > 2011/12/20 Brad Koch <bradkoch2...@gmail.com>
>
> > > > > In previous versions of CakePHP, you could organize Controllers into
> > > > > subfolders.  In CakePHP 2, when I try this I encounter missing
> > > > > controller errors.
>
> > > > > Anyone know the reason for this?  How can you enable storing
> > > > > controllers in subfolders in CakePHP 2?
>
> > > > > --
> > > > > Our newest site for the community: CakePHP Video Tutorials
> > > > >http://tv.cakephp.org
> > > > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
> > > > > others with their CakePHP related questions.
>
> > > > > To unsubscribe from this group, send email to
> > > > > cake-php+unsubscribe@googlegroups.com For more options, visit this
> > > group
> > > > > athttp://groups.google.com/group/cake-php
>
> > > --
> > > Our newest site for the community: CakePHP Video Tutorials
> > >http://tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
> > > others with their CakePHP related questions.
>
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscribe@googlegroups.com For more options, visit this group
> > > athttp://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: