Skip to content

mount vars #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
aminpypc opened this issue May 1, 2022 · 2 comments
Open

mount vars #178

aminpypc opened this issue May 1, 2022 · 2 comments

Comments

@aminpypc
Copy link

aminpypc commented May 1, 2022

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 ???

@aolko
Copy link

aolko commented Jan 24, 2023

exactly, @bramus, will there be a fix for that?

@Kev744
Copy link

Kev744 commented Apr 11, 2025

Some news ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants