Extend Controller Multiple Times - 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: Extend Controller Multiple Times (/showthread.php?tid=45058) |
Extend Controller Multiple Times - El Forum - 09-06-2011 [eluser]taggedzi[/eluser] Hello, I'm hoping a CI guru out there can save me some effort. I have extended CI_Controller with a class Named MY_Controller, easy enough. Now I want to create new extensions of CI_Controller. I want all the functions from CI_Controller, but I will be adding a completely different set of functions based on the interface... Basically all I want to figure out how to do is create SEVERAL extensions of the CI_Controller. (I want to use all the stuff built into controller, but have completely different functions available.) Something like this: Code: CI_Controller I know PHP can do this, I'm just not sure how to do it in CI. The site I'm working on is a very large site, and I don't want to have to repeat all the controller Code for each aspect. Thanks any help is welcome |