get_instance() NULL when extending CI_Log - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: get_instance() NULL when extending CI_Log (/showthread.php?tid=64470) |
get_instance() NULL when extending CI_Log - awalls - 02-23-2016 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. |