How to use return redirect() in helper or BaseController |
redirect() method is working perfectly on the controller but when trying to use it in helper or BaseController, it's not accepting returns.
I tried this code but didn't work on both helper and BaseController PHP Code: $session = \Config\Services::session(); PHP Code: if(!($user_data['user']['user_type'] == 1 && $user_data['user']['is_active'] == 1 && $user_data['user']['isLoggedIn'] == 1)){ |
Messages In This Thread |
How to use return redirect() in helper or BaseController - by chaudhary sushil - 09-21-2022, 11:50 PM
RE: How to use return redirect() in helper or BaseController - by kenjis - 09-22-2022, 07:11 PM
|