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

How to pass query parameters to the path_to_include #13

Closed
lcsqlpete opened this issue Sep 15, 2021 · 1 comment
Closed

How to pass query parameters to the path_to_include #13

lcsqlpete opened this issue Sep 15, 2021 · 1 comment

Comments

@lcsqlpete
Copy link

lcsqlpete commented Sep 15, 2021

Really like this library which will save me a lot of work.

The docs seem to discourage the use of query parameters but it's not uncommon for APIs to have query parameters as allowed by the OpenAPI spec. However it looks like they aren't made available to the path_to_include, meaning $_GET is empty.

I can easily edit the code to parse the query parameters into a $_GET array but wanted to check I'm not missing something before doing that.

@phprouter
Copy link
Owner

You are passing query parameter fine. Keep on using $_GET to access them.

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

2 participants