CodeIgniter Forums
MY_Controller technique not working with Reactor - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: MY_Controller technique not working with Reactor (/thread-38787.html)

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();