Welcome Guest, Not a member yet? Register   Sign In
Easy way to switch language
#6

[eluser]liri[/eluser]
Ok so,

Seems like I needed to load the session library in each controller (parent and child).
Is this how it should be?

Secondly, what is the code in the front controller's construct for about
item data? seems like it's never get read to there or written to there at all?
I'm talking about:
Code:
if($this->session->userdata('language'))
        {
            $this->config->set_item('language',$this->session->userdata('language'));
            $this->config->set_item('language_code',$this->session->userdata('language_code'));
        }
        $this->current_culture=$this->config->item('language');
        $this->culture_code=$this->config->item('language_code');


Messages In This Thread
Easy way to switch language - by El Forum - 10-23-2009, 01:03 AM
Easy way to switch language - by El Forum - 10-23-2009, 04:35 AM
Easy way to switch language - by El Forum - 10-23-2009, 10:50 AM
Easy way to switch language - by El Forum - 10-23-2009, 02:49 PM
Easy way to switch language - by El Forum - 11-18-2009, 06:32 AM
Easy way to switch language - by El Forum - 11-18-2009, 06:46 AM
Easy way to switch language - by El Forum - 03-29-2010, 10:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB