router
router copied to clipboard
mount vars
success:
$router->mount('/video', function () use ($router) {
$router->get('/([\w_\d]+)', function ($id) {
echo 'video '.$id;
});
});
error:
$router->mount('/video/([\w_\d]+)', function ($id) use ($router) {
$router->get('/', function () use ($id) {
echo 'video '.$id;
});
});
why ???
exactly, @bramus, will there be a fix for that?