Get the value of Default Language into a session variable? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Get the value of Default Language into a session variable? (/showthread.php?tid=26671) |
Get the value of Default Language into a session variable? - El Forum - 01-20-2010 [eluser]chefnelone[/eluser] Hello. I'd like to know how to get the value of Default Language into a session variable. I've got this in application/config/config.php Code: |-------------------------------------------------------------------------- How do I pass the value of $config['language'] to $_SESSION['language'] in index.php ? Code: <?php Get the value of Default Language into a session variable? - El Forum - 01-20-2010 [eluser]Armchair Samurai[/eluser] Pass $this->config->item('language') to your session. Get the value of Default Language into a session variable? - El Forum - 01-20-2010 [eluser]chefnelone[/eluser] [quote author="Armchair Samurai" date="1264016314"]Pass $this->config->item('language') to your session.[/quote] thanks AS |