Grouping routes with multiple filters |
Hi all. I use Codeigniter v4.4.4 PHP 8.3.1. and i have problem with grouping routes multiple filters.
PHP Code: $routes->group('toko', [ Filter 'filter' => 'sudah_login' from parent is not work for child routes. I must put again that's filter to child routes to make work it. is it like that or is this a bug? Thank's.
Your group array is missing a , comma after the namespace.
PHP Code: // Missing comma What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
already edited. just in this post I forgot the comma.
So, even if i put the comma still not work.
Just found this:
Route group filter What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
See https://github.com/codeigniter4/CodeIgniter4/pull/8033
https://github.com/codeigniter4/CodeIgni...ssues/7963 We will fix this as a bug, but the impact is big. So it will be fixed in 4.5.0. |
Welcome Guest, Not a member yet? Register Sign In |