[eluser]Martin Penev[/eluser]
Hi guys,
I'am extending the language core script by using the attached script. And for some functions, I need to use some config values (stored in the config.php).
Somehow I just cannot use any CI objects and functions and I won't know why. How or what do I need to write in order to use CI's functions and config values?
Code:
<?php
class MY_Language extends CI_Language
{
function My_Language()
{
parent::CI_Language();
$CI =& get_instance(); //<--- is this right?
}
function checkLanguageCookie()
{
//what code to retrieve a config value?
}
}
?>