Might also be of interest to create a component that will handle this
for you, which you just need to add to your app_controller ...
On Jan 6, 11:52 am, cyberscorp wrote:
> Thank you so much. I'll test these proposals and report back.
>
> On Jan 6, 9:16 am, gearvOsh wrote:
>
> > It will work fi
Thank you so much. I'll test these proposals and report back.
On Jan 6, 9:16 am, gearvOsh wrote:
> It will work fine in your AppController beforeFilter().
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" gr
It will work fine in your AppController beforeFilter().
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, s
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:
//
Hi,
> Sorry, it doesn't work.
>
> Any idea ? Thank you and sorry to bother you
[code snipped]
Well, you cannot call a non-static method in a static way.
--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~-~--~~~---~--~~
You received this message because you ar
Sorry, it doesn't work.
Any idea ? Thank you and sorry to bother you
*** bootstrap.php
// Encodage
//
Configure::write('App.encoding', 'utf-8');
// Langues
// ---
// get actiavted languages
$languages = LanguagesController::getActivat
Hi,
> if i use :
>
> App::import('Controller', 'Languages');
>
> i got the following error:
>
> Fatal error: Class 'Controller' not found in /var/www/project/app/
> app_controller.php on line 2
It seems like you also have to import the Controller class with
App::import('Core', 'Controller');
--
if i use :
App::import('Controller', 'Languages');
i got the following error:
Fatal error: Class 'Controller' not found in /var/www/project/app/
app_controller.php on line 2
Thanks
Daniel Hofstetter a écrit :
> Hi,
>
> > I'm using a language controller to manage languages (activating and
> >
Hi,
> I'm using a language controller to manage languages (activating and
> set to default functions etc...)
> How can i call a static function in bootstrap to load activated
> languages?
>
> ex:
>
> // get activated languages
> $languages = LanguagesController::getActivatedLanguages();
App::imp
Hi
I'm using a language controller to manage languages (activating and
set to default functions etc...)
How can i call a static function in bootstrap to load activated
languages?
ex:
// get activated languages
$languages = LanguagesController::getActivatedLanguages();
Thank you & Happy new y
10 matches
Mail list logo