Run code in every 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: Run code in every controller (/showthread.php?tid=22047) |
Run code in every controller - El Forum - 08-27-2009 [eluser]Unknown[/eluser] Hi, I was wondering if it was possible to run a certain piece of code in every controller withouth having to put it in there manually? Run code in every controller - El Forum - 08-27-2009 [eluser]richthegeek[/eluser] Hooks. Run code in every controller - El Forum - 08-27-2009 [eluser]Dam1an[/eluser] Or you can extend the base controller and put all your common stuff in there Run code in every controller - El Forum - 08-27-2009 [eluser]jedd[/eluser] [quote author="maigel" date="1251425172"]Hi, I was wondering if it was possible to run a certain piece of code in every controller withouth having to put it in there manually?[/quote] Hey maigel, Check out the [url="http://codeigniter.com/wiki/Header_and_footer_and_menu_on_every_page/"]wiki page on repeating code in every controller[/url] |