Re: Configure::listObjects() and bootstrap.php

2014-08-01 Thread sanjeevpunj
Hi Use App::objects('Controller'); instead of Configure::listObjects() (deprecated now) On Monday, August 24, 2009 6:12:03 PM UTC+5:30, Pixelastic wrote: > > Hello, > > I have some code I would like to put in my bootstrap.php that needs > the Configure::listObjects() function. Unfortunately

Re: Configure::listObjects() and bootstrap.php

2009-08-24 Thread brian
On Mon, Aug 24, 2009 at 2:44 PM, Pixelastic wrote: > > I don't think that would work. ::constructClasses() can't be called > statically, it does use the $uses variable to instanciate the models. Why do you need to call it statically? > And additionnaly, AppController isn't even loaded in bootstr

Re: Configure::listObjects() and bootstrap.php

2009-08-24 Thread Pixelastic
I don't think that would work. ::constructClasses() can't be called statically, it does use the $uses variable to instanciate the models. And additionnaly, AppController isn't even loaded in bootstrap. If that's of any help, I'm trying to grab the plugin list by calling Configure::listObjects('pl

Re: Configure::listObjects() and bootstrap.php

2009-08-24 Thread brian
AppController::constructClasses()? On Mon, Aug 24, 2009 at 8:42 AM, Pixelastic wrote: > > Hello, > > I have some code I would like to put in my bootstrap.php that needs > the Configure::listObjects() function. Unfortunately, this function > does not return anything when called from inside the boo

Configure::listObjects() and bootstrap.php

2009-08-24 Thread Pixelastic
Hello, I have some code I would like to put in my bootstrap.php that needs the Configure::listObjects() function. Unfortunately, this function does not return anything when called from inside the bootstrap.php, likely because bootstrap is called very very early. I finally had to put my code in t