Welcome Guest, Not a member yet? Register   Sign In
get_instance problem
#1

[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!


Messages In This Thread
get_instance problem - by El Forum - 02-07-2010, 12:46 PM
get_instance problem - by El Forum - 02-07-2010, 01:05 PM
get_instance problem - by El Forum - 02-07-2010, 01:47 PM
get_instance problem - by El Forum - 02-07-2010, 03:26 PM
get_instance problem - by El Forum - 02-07-2010, 03:27 PM
get_instance problem - by El Forum - 02-07-2010, 03:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB