Welcome Guest, Not a member yet? Register   Sign In
Can not declare session check in contractor in ci4
#1

I was trying to protect full controller class from non authorize user so I use

PHP Code:
if(! session()->has('isLogged'))
{
return 
redirect()-route('loginPage');


Buh will not work untill I put that same code in each method before it effect.

Any way to make it for the whole controller?
Reply


Messages In This Thread
Can not declare session check in contractor in ci4 - by seunex - 03-30-2020, 10:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB