Re: Get the L10n language value in 1.2

2007-06-13 Thread solidgumby
i found it, i ll post it here for the posterity in the app_controller : uses('L10n'); // put this at the top of the controller before the class declaration // AppController constructor (php5 only coz it use __construct()) function AppController() { $lo = new L10n(); $lo->get();

Re: Get the L10n language value in 1.2

2007-06-13 Thread solidgumby
it's what i tried : Configure::read('Config.language'); $this->Session->read('Config.language'); Gab On Jun 13, 1:56 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 6/13/07, solidgumby <[EMAIL PROTECTED]> wrote: > > > I tried to instanciate an L10n object and use the get method but > >

Re: Get the L10n language value in 1.2

2007-06-12 Thread Dr. Tarique Sani
On 6/13/07, solidgumby <[EMAIL PROTECTED]> wrote: > I tried to instanciate an L10n object and use the get method but > noting is returned. I also tried to read it with Configure::read and > Session->read as L10n is supposed to write the setting there, but no > luck. did you try to read Config.Lan

Get the L10n language value in 1.2

2007-06-12 Thread solidgumby
How do i get the language value detected by the L10n class ? I tried to instanciate an L10n object and use the get method but noting is returned. I also tried to read it with Configure::read and Session->read as L10n is supposed to write the setting there, but no luck. Thanks Gabriel --~--~-