I have a regular nav widget in the main layout which comes together with the basic template.
I’m trying to modify it so it has an image instead of string menu items.
I have the following very simple piece of code:
Nav::widget([ 'options' => ['class' => 'navbar-nav navbar-right'], 'items' => [ ['label' => Html::img('path', [options]), 'url' => 'some_url'] ] ])
And the framework puts the html code <img src = ‘…’> as a lable for the menu item instead of the picture itself. How this can be resolved?