[eluser]sajjad26[/eluser]
I am building role based access control system.
I am doing something like this
Code:
if($userHasAccess === true){
// execute the normal code
}else{
$ci =& get_instance();
$ci->accessDenied(); // this method is defined in main controller
}
now the problem is if user does not have the access then it will execute the accessDenied function just fine but will also execute the method from the query string which i would like to stop from happening. accessDenied is just used to output a view.