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, 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)

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to