Almost in all function in most of my controller i have to see to same things. i.e
1.Check if logged in. 2.Check the privilege.
I know how to do it. But what is the best way, so that i don't have to re-write the same code everywhere? Is it to make a helper or something? I'm a bit new to codeigniter, all i know is basic php!