YII2 nav widget open link in new tab/window and how to link to external link

echo Nav::widget([

'options' => ['class' => 'nav navbar-left nav-tabs'],

'items' => [


[
           'label' => 'Schedule An Appointment'
           'url' => 'http://google.com',
           'linkOptions' => ['target' => '_blank']        
        ],


],

]);

Leave a comment

Your email address will not be published. Required fields are marked *