![]() |
Filters not working in CodeIgniter 4 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Filters not working in CodeIgniter 4 (/showthread.php?tid=79592) |
Filters not working in CodeIgniter 4 - [email protected] - 07-06-2021 PHP Code: filter What is the issue in above code. Filter is not working in CodeIgniter 4. Not working filter auth in dashboard route. RE: Filters not working in CodeIgniter 4 - Magellan - 07-06-2021 The filter seems correct to me, maybe the problem is in the 'isAdminLoggedIn' session value,. Are you sure it is correctly set? RE: Filters not working in CodeIgniter 4 - ikesela - 07-06-2021 try follow format must implement before and after function RE: Filters not working in CodeIgniter 4 - paliz - 07-06-2021 PHP Code: <?php PHP Code: <?php namespace Modules\Common\Filters; RE: Filters not working in CodeIgniter 4 - [email protected] - 07-06-2021 (07-06-2021, 08:18 AM)Magellan Wrote: The filter seems correct to me, maybe the problem is in the 'isAdminLoggedIn' session value,. Are you sure it is correctly set? Yes it is correctly set (07-06-2021, 08:56 AM)ikesela Wrote: try follow format must implement before and after function Both functions before and after is already implemented but filters not working. RE: Filters not working in CodeIgniter 4 - MGatner - 07-07-2021 What does not work? The filter is not applied? Or some error? RE: Filters not working in CodeIgniter 4 - Chroma - 07-30-2021 I had a lot of trouble figuring out filters, but I see that you have api* rather than what I would have expected api/* I don't know if that matters, but it might. I am using filters in a custom namespace and that is working fine in all version of CI 4 that I have tried. |