Closed cstayyab closed 3 years ago
https://github.com/riverside/php-express/blob/master/src/Request.php#L14 it should be possible to pass query parameters, i didn't write this and i just stumbled upon this gem. in theory you could write the functionality in here, definetely doable. although i'm not exactly sure what you mean by parameters.
I just commit a fix that address this issue. Application and Router now have a new method 'param'. You can use it like this: https://riverside.github.io/php-express/api.html#app-param https://riverside.github.io/php-express/api.html#router-param
Hi!
I have read code and documentation provided but I couldn't find a way to pass parameters like we do in express.js. Yeah I did find a way to pass "hash" and numeric "id" but not a custom parameter.
Is there a way to do that in php-express?