Welcome Guest, Not a member yet? Register   Sign In
Admin controller
#11

[eluser]simshaun[/eluser]
I also like your method xwero.

However, I'm having trouble seeing the advantage of using a hook rather than extending certain controllers to a different parent.

Care to elaborate just a little?

I'm also assuming you can't alter the hook for controllers not contained within a sub-folder, so under certain circumstances you couldn't use it.
#12

[eluser]Andrew Cairns[/eluser]
You can autoload your admin controller if you store it within your library
For example, create My_Controller.php within your library and store your Admin_Controller class in there.
It will be loaded before your controller so you dont have to use an include

Yes, I know... naming conventions... but it works Smile




Theme © iAndrew 2016 - Forum software by © MyBB