We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Put parameters in url

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

in phalcon url format ex: https://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: https://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.phalcon.io/en/latest/api/Phalcon_Http_Request.html



4.3k

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.phalcon.io/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. :)