I'm very new to Symfony2 and I need to be able to test the current route in TWIG so I can display sub-menus in a template that's rendered like:
{% render "CPAdminBundle:Messages:sidebarMenu" %}
{% render "CPAdminBundle:Readings:sidebarMenu" %}
Within the sidebar templates I tried using the following but it throws an error:
path(app.request.attributes.get('_route'))
What's the correct way of doing what I'm trying to accomplish?