Welcome Guest, Not a member yet? Register   Sign In
$ci->config->set_item('language') having no effect
#1

(This post was last modified: 06-21-2016, 05:54 AM by sammyci.)

I am literary about to bleed...Sad

I want to set application language based on customer choice. I did the check in a hooks file. The cookie is set well then I do:

$ci->config->set_item('language',$language);

In my controllers (during normal view, no post view): echo $this->config->item('language') just outputs english. If however, i submit a form via post, it tries to access $language language.

I don't want to specify a language, in anyway, in my controllers like $this->lang->load('admin','english'). I just want load('admin');

What am i missing please?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB