Put parameters in url

Hi all! i have 1 question about Put parameters in url.

in phalcon url format ex: http://domainname/controller/action/uid=2 (uid is parameter)

then web server will execute and return info of user. But i want to put parameter via url: http://domainname/uid=2?? So can i do it! can show me!thank you

public getQuery ([unknown $name], [unknown $filters], [unknown $defaultValue], [unknown $notAllowEmpty], [unknown $noRecursive])

Gets variable from $_GET superglobal applying filters if needed If no parameters are given the $_GET superglobal is returned

Info: https://docs.phalconphp.com/en/latest/api/Phalcon_Http_Request.html



1.2k

yepp, thanks

``` public getQuery ([unknown $name], [unknown $filters], [unknown $defaultValue], [unknown $notAllowEmpty], [unknown $noRecursive])

Gets variable from $GET superglobal applying filters if needed If no parameters are given the $GET superglobal is returned ```

Info: https://docs.phalconphp.com/en/latest/api/Phalcon_Http_Request.html

If stamster's answer was what you are looking for please "accept" it so that we can mark this question as solved. :)