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

QueryString #55

Open
robertaodj opened this issue Oct 19, 2016 · 2 comments
Open

QueryString #55

robertaodj opened this issue Oct 19, 2016 · 2 comments

Comments

@robertaodj
Copy link

robertaodj commented Oct 19, 2016

Hello.

Retrieving a querystring in a paging system?

My URL is:

http://localhost:8080/simpla/panel/car?pg=2&sort=plate#Name

My Route is:
$router->controller("simpla/panel/car", "Example\\Car");

I want to retrieve the querystring by $_GET and move to the paging system.

@creativefctr
Copy link

creativefctr commented Jul 10, 2017

I don't know why the query string does not get passed as usual but I used this workaround to get the parameters:
$params = null; parse_str(parse_url($_SERVER['REQUEST_URI'])['query'], $params);
Then you can use $params just like $_GET

@vickvasquez
Copy link

Cool, thanks man

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