@odan sorry, my mistake. My routing looks like this: $this -> get(’/category/{id}/{name} without params. And if i write $args[‘name’] the results is name from routing and data which i want from $_GET variable, but i want all $_GET parameters in array
Slim 3 is based on PSR-7 (HTTP Message). Therefore you have to get all request parameters from the $request object.
You can get the query parameters as an associative array on the Request object using $request->getQueryParams().
You can also get a single query parameter value, with optional default value if the parameter is missing, using $request->getQueryParam($key, $default = null).