Welcome Guest, Not a member yet? Register   Sign In
Hooks - pre_controller vs. post_controller_constructor
#4

I tried but, after I attached hooks pre_controller, there was no DB connection available.
Im not exactly sure, but CI autoloads libraries before controller constructor BUT after hooks. This seem to be reason, why there is no DB connection available in hooks.
Reply


Messages In This Thread
RE: Hooks - pre_controller vs. post_controller_constructor - by Sezu - 03-28-2017, 08:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB