Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-05 Thread AD7six
On May 4, 8:59 pm, Matthew wrote: > Wow a lot of conflict in here. I am pretty new with Cake, I had a test > site up with 1.2 and have recently moved to 1.3 for PHP 5.3 support. > The biggest roadblock for me is permissions management. I am trying to > write a permissions editor that lists all c

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-04 Thread Sam Sherlock
@matthew have a loook at the following Mark Story's acl extras plugin Thatcode's permissiable plugin - S On 4 May 2010 19:59, Matthew wrote: > Wow a lot of conflict in here. I am pretty new with Cake, I had a test > site up with 1.2 and have recently moved to 1.3 for PHP 5.3 support. > The

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-04 Thread Matthew
Wow a lot of conflict in here. I am pretty new with Cake, I had a test site up with 1.2 and have recently moved to 1.3 for PHP 5.3 support. The biggest roadblock for me is permissions management. I am trying to write a permissions editor that lists all controllers and their methods so I can simply

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-02 Thread Miles J
Hence why I said just use plugins, cause the conventions are automatic. On May 2, 1:56 am, AD7six wrote: > On May 1, 10:32 pm, Jamie wrote: > > > > > On May 1, 1:21 pm, AD7six wrote: > > > > On May 1, 10:19 pm, Jamie wrote: > > > > > On May 1, 1:17 pm, AD7six wrote: > > > > > > On May 1, 10:1

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-02 Thread AD7six
On May 1, 10:32 pm, Jamie wrote: > On May 1, 1:21 pm, AD7six wrote: > > > > > > > > > On May 1, 10:19 pm, Jamie wrote: > > > > On May 1, 1:17 pm, AD7six wrote: > > > > > On May 1, 10:13 pm, Jamie wrote: > > > > > > On May 1, 12:46 pm, AD7six wrote: > > > > > > > On May 1, 9:36 pm, Jamie wr

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-01 Thread Jamie
On May 1, 1:21 pm, AD7six wrote: > On May 1, 10:19 pm, Jamie wrote: > > > > > > > On May 1, 1:17 pm, AD7six wrote: > > > > On May 1, 10:13 pm, Jamie wrote: > > > > > On May 1, 12:46 pm, AD7six wrote: > > > > > > On May 1, 9:36 pm, Jamie wrote: > > > > > > > I read the whole thread. I'm not

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-01 Thread AD7six
On May 1, 10:19 pm, Jamie wrote: > On May 1, 1:17 pm, AD7six wrote: > > > > > On May 1, 10:13 pm, Jamie wrote: > > > > On May 1, 12:46 pm, AD7six wrote: > > > > > On May 1, 9:36 pm, Jamie wrote: > > > > > > I read the whole thread. I'm not sure how that changes my post. > > > > > > I was jus

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-01 Thread Jamie
On May 1, 1:17 pm, AD7six wrote: > On May 1, 10:13 pm, Jamie wrote: > > > > > > > On May 1, 12:46 pm, AD7six wrote: > > > > On May 1, 9:36 pm, Jamie wrote: > > > > > I read the whole thread. I'm not sure how that changes my post. > > > > > I was just explaining to the original poster why subf

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-01 Thread AD7six
On May 1, 10:13 pm, Jamie wrote: > On May 1, 12:46 pm, AD7six wrote: > > > > > On May 1, 9:36 pm, Jamie wrote: > > > > I read the whole thread. I'm not sure how that changes my post. > > > > I was just explaining to the original poster why subfolders didn't > > > automatically work > > > I wou

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-01 Thread AD7six
On May 1, 9:46 pm, AD7six wrote: > On May 1, 9:36 pm, Jamie wrote: > > > I read the whole thread. I'm not sure how that changes my post. > > > I was just explaining to the original poster why subfolders didn't > > automatically work > > I would suggest you try and don't assume. > > > , why there'

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-01 Thread Jamie
On May 1, 12:46 pm, AD7six wrote: > On May 1, 9:36 pm, Jamie wrote: > > > I read the whole thread. I'm not sure how that changes my post. > > > I was just explaining to the original poster why subfolders didn't > > automatically work > > I would suggest you try and don't assume. > > > , why the

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-01 Thread AD7six
On May 1, 9:36 pm, Jamie wrote: > I read the whole thread. I'm not sure how that changes my post. > > I was just explaining to the original poster why subfolders didn't > automatically work I would suggest you try and don't assume. > , why there's no easy way to make them work, and why > they

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-01 Thread Jamie
I read the whole thread. I'm not sure how that changes my post. I was just explaining to the original poster why subfolders didn't automatically work, why there's no easy way to make them work, and why they work in other frameworks/code designs. Please explain to me the problem you have with my po

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-01 Thread AD7six
On May 1, 9:12 pm, Jamie wrote: > Because Cake doesn't follow the Zend/PEAR class naming convention, the > only way to make subfolders work, really, is by manually adding each > subfolder's path with App::build. Because class and file names don't > match up and don't follow a pattern, there's no

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-01 Thread Jamie
Because Cake doesn't follow the Zend/PEAR class naming convention, the only way to make subfolders work, really, is by manually adding each subfolder's path with App::build. Because class and file names don't match up and don't follow a pattern, there's no 'regular' Cake class name/path and hence n

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-01 Thread gremlin
Also *I* sometimes want my controllers in sub-folders as an easy way 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 contro

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-04-30 Thread Miles J
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 wrote: > Matthew, > > They aren't /supposed/ to be in subfolders - please run through (I.e. > don't just rea

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-04-30 Thread AD7six
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 wrote: > Well its simple. You cant put controllers within subfolders. Cake > doesn't support it. Miles, You're doing that my-ass

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-04-29 Thread gremlin
I was answering his question. I don't know what his actual situation is - perhaps he simplified his scenario when he asked his question. Also the answer is useful to someone else who might have a legit reason for wanting an alternate folder structure. Thanks though, for your useful input. On Apr 2

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-04-29 Thread Miles J
Yeah but if you are going to do that, you might as well just use plugins, lol. On Apr 29, 6:38 pm, gremlin wrote: > App::build( array( >     'controllers' => array( >         DS . join( DS, array( 'parts', 'to', 'your', 'path' ) . DS, >         ... other paths for controller lookup >     ), > ));

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-04-29 Thread gremlin
App::build( array( 'controllers' => array( DS . join( DS, array( 'parts', 'to', 'your', 'path' ) . DS, ... other paths for controller lookup ), )); should work for you. I am not sure if you need to set the "normal" path as one of the array items or not. Play around and let

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-04-29 Thread Miles J
Well its simple. You cant put controllers within subfolders. Cake doesn't support it. If you want to put controllers within subfolders, you have to make it a plugin. On Apr 29, 7:38 am, Matthew wrote: > Here is my basic file structure > > app/controllers -> >                      /categories/cat

v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-04-29 Thread Matthew
Here is my basic file structure app/controllers -> /categories/categories_controller.php /news/news_controller.php /users/users_controller.php First attempt (default controller paths): $controllerClasses = App::objects('controller');