<div class="cmf-breadcrumb">
    <ul>
        {% for title, url in knp_menu_get('main').currentItem.breadcrumbsArray %}
            <li><a href="{{url}}">{{ title }}</a></li>
        {% endfor %}
    </ul>
</div>

<h2 class="offset">Main navigation</h2>

{{ knp_menu_render('main') }}

<div class="cmf-breadcrumb">
    <ul>
        {% if knp_menu_get('main').currentItem %}
        {% for title, url in knp_menu_get('main').currentItem.breadcrumbsArray %}
            <li><a href="{{url}}">{{ title }}</a></li>
        {% endfor %}
        {% endif %}
    </ul>
</div>

<h2 class="offset">Main navigation</h2>

{{ knp_menu_render('main') }}

Handle case where main menu does not have a current item.
Handle case where main menu does not have a current item.
