Welcome Guest, Not a member yet? Register   Sign In
get_instance() NULL when extending CI_Log
#1

(This post was last modified: 02-23-2016, 04:26 AM by awalls.)

I recently upgrading by CI2 application to use CI3 (currently 3.0.3). In my CI2 code I had extended the CI_Log core class with my own MY_Log class located under application/core. This worked fine in CI2 but since the upgrade to CI3 get_instance() using in my extended class always returns NULL.

PHP Code:
$CI =& get_instance(); 

Has something changed in the way extended core class get loaded?

UPDATE: Just to add some more context to this, this happens when CI runs into a 404 error.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB