Welcome Guest, Not a member yet? Register   Sign In
CI3 core code bug
#9

CodeIgniter provides hooks, yes. *By design*, get_instance does *not* exist when "pre-system" hooks are called. That is the intent.

There is a "pre-controller" hook, which happens after all the core system classes have been instantiated, and at which point, *by specific design*, get_instance *does* exist.

If you want to write a hook that uses get_instance, shouldn't you be configuring it as a "pre-controller" hook.
Reply


Messages In This Thread
CI3 core code bug - by Ryuu - 01-12-2017, 03:59 AM
RE: CI3 core code bug - by ciadmin - 01-12-2017, 08:30 AM
RE: CI3 core code bug - by ivantcholakov - 01-12-2017, 12:24 PM
RE: CI3 core code bug - by Ryuu - 01-12-2017, 03:26 PM
RE: CI3 core code bug - by ciadmin - 01-12-2017, 08:50 PM
RE: CI3 core code bug - by Ryuu - 01-12-2017, 09:41 PM
RE: CI3 core code bug - by ivantcholakov - 01-12-2017, 11:57 PM
RE: CI3 core code bug - by Ryuu - 01-15-2017, 08:35 PM
RE: CI3 core code bug - by ciadmin - 01-15-2017, 10:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB