Hello, I am still new at Cake.
Here is my question:
I develop multilingual site. I am going to create some helpers to help
me deal with many languages. Here is an example :
var $helpers = array('Html','Pagination','En');
where 'En' is English helper, there will be also others
('GER','ESP','RUS', etc)
Until user is logged on 'En' helper will be used, but when user logs
in he gets
$this->Session->write('lang','USER_DEFAULT_LANGUAGE_ FROM_DB').
According to this session variable I want to include appropriate helper
, so I need something like that:
var $helpers = array('Html','Pagination',$this->Session->read('lang'));
but it does not work. Could anybody tell me what is the best way to
implement things I want?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---