[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:
|--------------------------------------------------------------------------
| Default Language
|--------------------------------------------------------------------------
*/
$config['language'] = "spanish";
How do I pass the value of $config['language'] to $_SESSION['language'] in index.php ?
Code:
<?php
class Index extends Controller
{
function __construct(){
parent::Controller();
session_start();
$_SESSION['language'] = .............
}
}