I have a problem with customizing knp-menu template.
I simply extent the knp_menu.html.twig like in this site is explained.
If I try it like this I get this error:
My knp_menu.html.twig looked like this:
{% extends 'knp_menu.html.twig' %}
{% block linkElement %}{% import _self as knp_menu %}
<a href="{{ item.uri }}"{{ knp_menu.attributes(item.linkAttributes) }}>{{ block('label') }}</a>
{% endblock %}
I try to render the template like this:
{{ knp_menu_render('MainShowBundle:Builder:mainUserMenu', {'template': 'MainShowBundle:Menu:knp_menu.html.twig'}) }}
I hope someone can help me.
Thanks. Michael