Redirect Not Working CI4 |
Hello Guys. I started a new Project with CI4 to see the new features and I am struggling trying to redirect between pages.
It's really simple... I have a Login Controller PHP Code: <?php namespace App\Controllers; And a Dashboard Controller PHP Code: <?php namespace App\Controllers; I would like to control the User Sessions. If the user is not log in on the system... Redirect to Login View. I would like to have this functionality in all my Controllers so I just add it to the BaseController. PHP Code: protected $session; I tried everthing with (/), adding to routes of course. With only redirect(); A lot of things... but seems like something changes in CI4 that I dont get it. SYSTEMPATH/HTTP\Exceptions\HTTPException.php |
Welcome Guest, Not a member yet? Register Sign In |