spokenlikeageek.com
How to run code before every controller in CodeIgniter - Neil Thompson - Spoken Like a Geek
I have been working on my side project PostRecycler recently which I have re-written to use the CodeIgniter framework. I came across an interesting challenge where I needed to run some code before every other controller. What I wanted was to prevent a user from moving away from the dashboard page if their account had …