[eluser]rich.a.coy[/eluser]
Hello, I'm new to CI and relatively new to PHP. I'm wondering how do you break running a controller?
I have a function to check if someone is logged in at the top of a controller. If they are not logged in I am loading a new view. Problem is the rest of the original controller runs and shows content they should not be seeing without logging in.
Is there a better way to handle the logged in issue? The way I have it now would mean duplicate code on every secured view I think.
I looked in the user guide but I'm not sure what I am looking for.
Thanks for indulging a noob!