![]() |
Admin controller - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Admin controller (/showthread.php?tid=13960) Pages:
1
2
|
Admin controller - El Forum - 12-30-2008 [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. Admin controller - El Forum - 01-22-2009 [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 ![]() |