[eluser]Gewa[/eluser]
Hi, during programming in CI, i make user role check in each function for one controller. And there is a lot of things that I want to have in my hand beforehand in each controller before the function index()..
So what is the best way, for example to make
Code:
if($variable!="value"){
header("Location: /customer/login");
}
this code before the functions part,
instead of putting this code in all functions.....