Share Code Between CodeIgniter Controllers

Posted by & filed under PHP/CodeIgniter.

If you have a block of code that should be invoked with each of your CodeIgniter controllers, you may not have found an obvious way to do this, other than using one controller for your entire project. Read on to learn how you can!