[eluser]louis w[/eluser]
I am trying to extend the output library but getting an error when trying to call get_instance. Not sure why this would be happening, I have never run up against this issue in other libraries.
Code:
Code:
class MY_Output extends CI_Output {
public function __construct() {
parent::__construct();
$this->CI =& get_instance();
}
// ...
}
Error:
Code:
Fatal error: Call to undefined function get_instance() in /.../application/libraries/MY_Output.php
And I should mention that I have the native CI caching turned off, so it's not loading the output library before creating the super object.