Closed rustedwolf closed 6 years ago
@rustedwolf If you look at the error message, you will see that slashes are missing:
"ZendNavigationDefault"
Add extra slashes:
{% for page in navigation('Zend\\Navigation\\Default').container %} … {% endfor %}
The double backslashes are only needed in a Twig template!
Thanks! That helped!
I've created navigation in the configuration file, according to example in Quick Star documentation. It worked with single menu, but once I've tried multiple menu approach I receive the following error:
The way I call the methof
{% for page in navigation('Zend\Navigation\Default').container %} <a href="{{ url(page.route) }}" class="navbar-item">{{ page.label }}</a> {% endfor %}