How do I obtain all the GET parameters on Silex?
In Request object you have access to multiple parameter bags, in particular:
$request->query
- the GET parameters$request->request
- the POST parameters$request->attributes
- the request attributes (includes parameters parsed from the PATH_INFO)
$request->query
contains GET parameters only. city_id
is not a GET parameter. It's an attribute parsed from the PATH_INFO.
Silex uses several Symfony Components. Request and Response classes are part of the HttpFoundation. Learn more about it from Symfony docs: