Hello, people!
I have this piece of code:
class MY_Language extends CI_Language {
function MY_Language()
{
parent::CI_Language();
$CI =& get_instance();
$CI->load->model('language_model');
$languages = $this->language_model->get_languages();
print_r($languages);
}
}
But I keep getting "Fatal error: Call to undefined function get_instance() in C:\xampp\htdocs\application\libraries\MY_Language.php on line 44". Any ideas? Thanks in advance!