Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

How to get URL segments

Hi How can I get URL segments in phalcon?



7.2k
$uri_segments = explode("/", $this->request->getUri());


52.1k
Accepted
answer

Phalcon doesn't have anything for parsing a URL, because PHP already has it built in: http://www.php.net/manual/function.parse-url.php