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('plugin');
On Aug 24, 7:32 pm, brian <[email protected]> wrote:
> AppController::constructClasses()?
>
> On Mon, Aug 24, 2009 at 8:42 AM, Pixelastic<[email protected]> 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 bootstrap.php,
> > likely because bootstrap is called very very early.
>
> > I finally had to put my code in the routes.php file, because that's
> > the only place I found to get my code loaded as early as possible, but
> > it is quite an unusual place. And not a very clean way of organizing
> > things.
>
> > Do any of you know a cleaner way to this ?
>
> > (P.S : As the listObject() method is quite heavy, I DO cache results
> > of my custom function for further requests, but I need the first one -
> > cache empty- to occur before any model creation)
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---