Welcome Guest, Not a member yet? Register   Sign In
Bug in routes with path in controller
#11
Big Grin 

Thanks very much for your help everyone  Big Grin

This is how my routes are coming along...

Code:
$routes->get('about', 'Main::about', ['namespace' => 'App\Controllers\Front']);
$routes->get('contact-us', 'Main::contactUs', ['namespace' => 'App\Controllers\Front']);
$routes->get('products/(children|men|women)', 'Main::getProducts/$1', ['namespace' => 'App\Controllers\Front']);

I wanted to "group by namespace" but I don't think I can. If not, I will look to having a var for the namespace array.
Reply


Messages In This Thread
Bug in routes with path in controller - by acy29 - 11-22-2019, 05:44 AM
RE: Bug in routes with path in controller - by paulkd - 05-14-2021, 12:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB