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 to display the url path which i had followed to get till the present action dynamically.

i want dispaly my url path which i had follwed to reach the present action in the breadcrumb part.and it has to be updated dynamically. Please help

edited Nov '16
$request = $this->getShared('request'); //we need Request service
$currentURI = $request->getURI(); //Gets HTTP URI which request has been made

Broken link. Put it inside of 'code' snipped here:

`https://url.com/here.html`
edited Nov '16

iwant to print the previous action as well..like it printed new->worlnews->abc->def(current action)

Then you need to maintain previous $request->getURI() as well. The best would be to create a shared service which will handle all of that logic at one place. You'd need to use session service for sure.