![]() |
$routes->match() behavior in 4.4.1 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: $routes->match() behavior in 4.4.1 (/showthread.php?tid=88473) |
$routes->match() behavior in 4.4.1 - joho - 09-13-2023 Does $routes->match() behave differently in 4.4.x? I have this, and it works for 4.3.x, but seemingly not for 4.4.1: Code: use CodeIgniter\Router\RouteCollection; Hmm ... apparently this: Code: $routes->group( 'zadmin', static function( $routes ) needed to be this: Code: $routes->group( '', static function( $routes ) RE: $routes->match() behavior in 4.4.1 - kenjis - 09-13-2023 Check the routing table. $ php spark routes RE: $routes->match() behavior in 4.4.1 - joho - 09-13-2023 (09-13-2023, 03:42 AM)kenjis Wrote: Check the routing table. Yeah, I did that, thanks, and it looked good; until I realized that /zadmin shouldn't be a part of the route. So setting it to '' (empty) worked better ![]() |