Best way to have multiple parent controllers - 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: Best way to have multiple parent controllers (/showthread.php?tid=18326) Pages:
1
2
|
Best way to have multiple parent controllers - El Forum - 05-03-2009 [eluser]wiredesignz[/eluser] You should also seriously consider Rick Jolly's idea using __autoload() if you are developing under PHP5. This would prevent including unnecessary base classes. Best way to have multiple parent controllers - El Forum - 05-03-2009 [eluser]opel[/eluser] Ok thanks everyone for their help, for anyone that stumbles across this here is my all my code to get multiple controllers. At the end of config.php Code: /* In libraries/MY_Controller.php (Variables can be passed to all extended controllers) Code: class MY_Controller extends Controller Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); |