-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Route options filter didn't working #2654
Comments
Does |
I couldn't recreate this bug. The filters in both cases work for me just fine. Are you sure you're testing this with |
yes, well i'll try to turn off autorouting to see if it working .. |
yep, i am pretty sure that i send |
@gaibz
die($request); will only exit and will not output anything. |
yes i know die($request) will only exit and not output anything .. |
well, after all i guess grouping routes $routes->group('closed', ['filter'=>'coba'], function($routes)
{
$routes->post('auth', 'Closed\Auth::auth');
}); is the best solution that work in my case .. Thanks all .. |
I think I found a bug in Route options Filter ..
Using codeigniter 4.0 latest release from composer repository ..
I have the following config on my routes.php
and have the following config on my filters.php
and then on my CobaFilter.php under Filters folder
But if i have group routes config it just work .. i.e (routes.php):
I'm not quiet sure if this is a bug or just my mistake ..
i just follow the documentation page : https://codeigniter4.github.io/userguide/incoming/routing.html#applying-filters
Hope you guys find a solution for this ..
The text was updated successfully, but these errors were encountered: