$ci->config->set_item('language') having no effect - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12) +--- Thread: $ci->config->set_item('language') having no effect (/showthread.php?tid=65514) |
$ci->config->set_item('language') having no effect - sammyci - 06-21-2016 I am literary about to bleed... 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? |