Welcome Guest, Not a member yet? Register   Sign In
Redirecting in BaseController?

So in previous Codeigniter versions I usually had a base controller that all other controllers extended from.  In that controller I would check if the user was logged in and if not, redirect them to a login page.  I'm not able to do redirecting in the base controller in CI4.  

How should I handle checking if the user is logged in and if not sending them to the login page without having to write an if statement on all of my page controllers?

Messages In This Thread
Redirecting in BaseController? - by next2heaven - 11-12-2019, 10:36 AM
RE: Redirecting in BaseController? - by MGatner - 11-12-2019, 07:30 PM

Theme © iAndrew 2016 - Forum software by © MyBB