Hi cyberscorp,

>  Well, you cannot call a non-static method in a static way.

I think this should probably be handled by your app_controller rather
than in bootstrap, in beforeFilter at a guess. You then need to make
your 2 methods model methods not controller methods, and call them
like so:

// get actiavted languages
$languages = ClassRegistry::init('Language')->getActivatedLanguages();

// get default langugage
$langdefault = ClassRegistry::init('Language')->getDefaultLanguage();

ClassRegistry::init('Language')->getActivatedLanguages();

This might also work from bootstrap, it might not - worth a shot eh!

hth

Jon

-- 

jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~---------~--~----~------------~-------~--~----~
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