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

How get url path?

I have link /news/september/daily/100.html

route

/news/september/daily/([0-9]+).html

How get path /news/september/daily/?



1.3k
$this->route->getMatchedRoute()->getPaths()
$this->route->getMatchedRoute()->getPattern()


25.0k

not this need get path /news/september/daily/ without other

$this->route->getMatchedRoute()->getPaths()
$this->route->getMatchedRoute()->getPattern()