CodeIgniter Forums
MY_Controller technique not working with Reactor - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: MY_Controller technique not working with Reactor (/showthread.php?tid=38787)

Pages: 1 2 3


MY_Controller technique not working with Reactor - El Forum - 02-22-2011

[eluser]Phil Sturgeon[/eluser]
You guys appear to be using my method which has been updated for 2.0:

http://philsturgeon.co.uk/news/2010/02/CodeIgniter-Base-Classes-Keeping-it-DRY

It's not that different, they have just made a new "core" folder and you need to put core libraries in there, and rename Controller to CI_Controller and change parent::Controller() to parent::__construct();