Welcome Guest, Not a member yet? Register   Sign In
Codeigniter share data from pre controller hook
#1

I want to do the similar job in controllers constructors. So I don't want to repeat it in each controller. Instead, I want to write it once in hook.

It works fine in post_controller_constructor hook with ci super object. But cannot access it in the controller's constructor (Only functions of a controller).

pre_controller doesn't work. Because we don't access to ci super object at all. Any idea?
Reply


Messages In This Thread
Codeigniter share data from pre controller hook - by vahid.vdn - 05-01-2017, 02:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB