Skip to content
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

Router when router text have _ #278

Open
totosugito opened this issue Jun 16, 2023 · 0 comments
Open

Router when router text have _ #278

totosugito opened this issue Jun 16, 2023 · 0 comments

Comments

@totosugito
Copy link

totosugito commented Jun 16, 2023

Hi,
Thank you for the great code.
I have created the code below

<?php require 'AltoRouter.php'; $router = new AltoRouter(); $router->map('GET', '/test/[a:key]', function ($key) { echo $key; });

I have test the code use this parameter and working fine
http://localhost/test/hello

But, the code don't have response when use the underscore symbol like
http://localhost/test/hello_world

How to accept router url with underscore symbol ?

Thank you.
Best regards,

Toto

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

1 participant