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

Build Dynamic Breadcrumbs

I would like to be able to do dynamic breadcrumbs.

i want to show the name of the view in it.



77.7k
Accepted
answer
<ul>
{#
   <li><a href="{{ url(dispatcher.getModuleName()~'/index/index') }}">{{ dispatcher.getModuleName() }}</a></li>
#}
   <li><a href="{{ url(dispatcher.getModuleName()~'/'~dispatcher.getControllerName()~'/index') }}">{{ dispatcher.getControllerName() }}</a></li>
   <li>{{ dispatcher.getActionName() }}</li>
</ul>


1.6k

Thanks!! so much! it work!