Filters in route not working in codeigniter 4.0.4 |
Filter in route does not look to work this filter isLogged if i use it in GLobal filters it works but if use it in a specific route is does not effect at all
The function as no effect at all. PHP Code: $routes->get('upload', 'ItemUploadController::chooseCategory', ['filter' => 'isLogged', 'as' => 'userUploadItemStart']);
i'm using 4.0.4 and filter works on a specific route.
But i put my filter class in app/Filters directory. Then i edit app/Config/Filters.php eg Code: public $aliases = [
Filters work fine while using it in filter.php am talking about using it in a specific route
How specific is "specific" the code
Code: 'myfilter3' => ['before' => ['removeBlog']], Code: $routes->get('removeBlog','Blog::delBlogForm'); |
Welcome Guest, Not a member yet? Register Sign In |