[eluser]adamp1[/eluser]
Right I'm trying to extend the Language library to add in language detection and have the following code.
Code:
class MY_Language extends CI_Language
{
/**
* Constructor
*/
function MY_Language()
{
// Call Parent Constructor
parent::CI_Language();
// Get CI Instance
$this->CI = &get;_instance();
log_message('debug','MY_Language Class Initialized');
}
}
It says the &get;_instance() function is not defined? I don't get it. I have got the exact code (different names) in a MY_Validation class and it works fine. Why is get_instance not found in the library class.
EDIT: There is a ; in the get_instance() function call, this is a typo on writing the code into the forum post, this ; is not in the actual code I am trying to run. I tried to remove it from the post but for what ever reason the change is not being saved.