I'm having trouble finding how to get the Urls from named routes inside a Phalcon PhP controller. This is my route:
'controller' => 'AdminApplication',
'action' => 'detail'
$url = $this->tag->linkTo(
'for' => 'application-details',
'formUrl' => $form->url,
'id' => $id
You should use the URL helper. Example:
$url = $this->url->get( [ 'for' => 'application-details', 'formUrl' => $form->url, 'id' => $id, ], [ 'q' => 'test1', 'qq' => 'test2', ] );
You can pass second array for query string params if needed.
According to your route definition, the above should output something like:
More info of Generating URIs in the docs.