Welcome Guest, Not a member yet? Register   Sign In
calling controllers with hook
#2

[eluser]Colin Williams[/eluser]
The issue is that the Controller hasn't bee loaded (I mean, c'mon, the name of the hook is 'pre_controller').

You might want to move whatever code you have into the controller constructor.

And your next remark is, "But I don't want to paste it into every controller." To which I say, "Put in the parent class, Controller or MY_Controller"


Messages In This Thread
calling controllers with hook - by El Forum - 12-17-2009, 04:41 AM
calling controllers with hook - by El Forum - 12-17-2009, 04:49 AM
calling controllers with hook - by El Forum - 12-17-2009, 05:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB