Hello,
I need some help, I store default language in database I need to connect database in application/core/MY_Config for get some value from database for set config item and save that value to session.
Those step must to be happen before application/core/MY_Lang load.
I try coding below it's not working. What should I do ?
Code:
class MY_Config extends CI_Config {
var $CI;
public function __construct(){
parent::__construct();
$this->CI =& get_instance();
}
}