[eluser]JCianflone[/eluser]
Hi everyone,
I'm trying to create a new Exceptions class for a little project I'm working on but I seem to have an issue with getting the CodeIgniter instance. The error I get is:
Quote:Fatal error: Call to undefined function get_instance() in ...
My code is this:
Code:
class HUB_Exceptions extends CI_Exceptions {
private $CI;
public function __construct() {
parent::CI_Exceptions();
$this->CI =& get_instance(); //It breaks on this line here...
}
}
This is my first time extending a core class, so I'm not 100% sure what's breaking here.
Any help would be greatly appreciated.
Thanks!