Welcome Guest, Not a member yet? Register   Sign In
get_instance return null
#7

(This post was last modified: 11-26-2015, 02:13 PM by kenjis.)

(11-26-2015, 11:16 AM)gastongr Wrote: Your code will work when you call show_404() or show_error() from any of your controllers, but if the error is dispatched at a higher level like a real 404 this wont work since at that point no CI instance exists.

This happened to me as well and it's really frustrating.

If there is no CI instance, you have to create it before using it.

Maybe it is bad design of CI.
Reply


Messages In This Thread
get_instance return null - by llobu - 11-25-2015, 07:48 AM
RE: get_instance return null - by InsiteFX - 11-25-2015, 09:26 AM
RE: get_instance return null - by llobu - 11-25-2015, 12:25 PM
RE: get_instance return null - by jvandemerwe - 11-25-2015, 02:38 PM
RE: get_instance return null - by Narf - 11-25-2015, 05:23 PM
RE: get_instance return null - by gastongr - 11-26-2015, 11:16 AM
RE: get_instance return null - by kenjis - 11-26-2015, 02:12 PM
RE: get_instance return null - by sv3tli0 - 11-27-2015, 02:06 AM
RE: get_instance return null - by gastongr - 11-27-2015, 09:58 AM
RE: get_instance return null - by kenjis - 11-27-2015, 03:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB