Logout user when admin blocks using codeigniter -
here have little bit confusion in coding. , problem is, when user logged in account. @ time,if admin blocks user whoever logged in. , if user clicks on link user must logout.
i have created bunch of controller in project. so, don't make change in controllers. how write code in short , sweet.?
thanks in advance. :)
you need extend ci_controller
, add in __constructor()
validation user blocked/not
Comments
Post a Comment