[eluser]axelf[/eluser]
Hi,
this is my Loader Class. It dosn't work with the constructor. i have to use the CI-Objekt, but why? The Library will be loaded automatically, but now i have to load this in the class?
Code:
// config:
$autoload['libraries'] = array('database','form_validation','session','email','language');
class MY_Loader extends CI_Loader {
function __construct() {
parent::__construct();
}
function lang_view($view, $vars=array()) {
// this works
//$CI =& get_instance();
//$CI->load->library('language');
//$lang = $CI->language->get();
// this does not work
$lang = $this->language->get()
}
}