标签:logo UI class end ems logout menuitem out bar
$menuItems[] = [
‘label‘ => "<img src=‘/images/small.jpg‘>",
‘url‘ => [‘/site/logout‘],
‘linkOptions‘ => [‘class‘ => ‘avatar‘],
‘items‘=>[
[
‘label‘=>‘Home1‘,
‘url‘=>‘/site/index‘
],
[
‘label‘=>‘Home2‘,
‘url‘=>‘/site/index‘
]
]
];
}
echo Nav::widget([
‘options‘ => [‘class‘ => ‘navbar-nav navbar-right‘],
‘items‘ => $menuItems,
‘encodeLabels‘ => false
]);
NavBar::end();
标签:logo UI class end ems logout menuitem out bar
原文地址:http://www.cnblogs.com/jasonxiaoqinde/p/7507891.html