Search code examples
symfonyknpmenubundle

Getting currently active menu title with KnpMenuBundle


How getting currently active menu title with KnpMenuBundle ?

Thank you


Solution

  • for the moment, I use the twig variable :

    {{ knp_menu_get_current_item('leftsidebar').name }}
    

    leftsidebar it's name of the service of my menu :)