Welcome Guest, Not a member yet? Register   Sign In
Router localization with empty {locale} (sitem.com/uri_here)) - CodeIgniter 4.3
#3

I would suggest another implementation.
PHP Code:
foreach(['''{locale}']  as $prefix) {
    $routes->group($prefix, static function ($routes) {
        $routes->get('blog''Blog::index');
        // e.tc.
    })


@kenjis what do you think about this?
PHP Code:
-- public function group(string $name, ...$params)
++ public function 
group(array|string $name, ...$params
Reply


Messages In This Thread
RE: Router localization with empty {locale} (sitem.com/uri_here)) - CodeIgniter 4.3 - by iRedds - 06-14-2023, 08:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB