Run code in every controller |
[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?
[eluser]Dam1an[/eluser]
Or you can extend the base controller and put all your common stuff in there
[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] |
Welcome Guest, Not a member yet? Register Sign In |