to use the File / Folder classes and folder locations to act as a
quick way to generate a filtered list of controllers. I have one
project with simple controllers in a widgets folder that all inherit
from a different parent controller than usual. Some parts of that app
list only the controllers in that folder as menu items/options
(Folder, Inflector, and App::build and class introspection for the
win). When I add a new module and put it in the right place with the
right docblock I don't have to worry about those rather critical menus
or synching what isn't application data with any databases.
Also just because you were told something once by a cake dev in the
past doesn't mean a) that they were right, or interested in explaining
something to you at the time or b) that the framework doesn't *now*
support the feature - either way you were wrong and rude about it.
On Apr 30, 10:24 am, Miles J <mileswjohn...@gmail.com> wrote:
> When I asked about controllers in sub-folders, the Cake devs told me
> to just use plugins -.-
>
> Sure there are ways around it, but I am repeating what I was told.
>
> On Apr 30, 12:38 am, AD7six <andydawso...@gmail.com> wrote:
>
>
>
> > Matthew,
>
> > They aren't /supposed/ to be in subfolders - please run through (I.e.
> > don't just read) the blog tutorial and try with a browser.
>
> > On Apr 29, 7:12 pm, Miles J <mileswjohn...@gmail.com> wrote:
>
> > > Well its simple. You cant put controllers within subfolders. Cake
> > > doesn't support it.
>
> > Miles,
>
> > You're doing that my-assumptions = fact thing again.
>
> >http://book.cakephp.org/view/530/Importing-Core-Libs(it'sexactly the
> > same for any type).
>
> > If your intention is to learn by stating your opinion until someone
> > points out your wrong (which is exactly how I learn most things) -
> > please clarify.
>
> > AD
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > 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?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> 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?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
No comments:
Post a Comment