I use app import and it worked for me:

App::import('Core', 'l10n');
$l10n = new L10n();
$l10n->get($locale);

I also place it in my app controller beforeFilter(). If you are doing
it in another controller, be sure to call parent::beforeFilter() in
that controllers beforeFilter().
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to