mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-29 13:57:50 +08:00
Fixes #1193
This commit is contained in:
@@ -38,7 +38,7 @@ AppAsset::register($this);
|
|||||||
$menuItems[] = ['label' => 'Logout (' . Yii::$app->user->identity->username .')' , 'url' => ['/site/logout']];
|
$menuItems[] = ['label' => 'Logout (' . Yii::$app->user->identity->username .')' , 'url' => ['/site/logout']];
|
||||||
}
|
}
|
||||||
echo Nav::widget([
|
echo Nav::widget([
|
||||||
'options' => ['class' => 'navbar-nav pull-right'],
|
'options' => ['class' => 'navbar-nav navbar-right'],
|
||||||
'items' => $menuItems,
|
'items' => $menuItems,
|
||||||
]);
|
]);
|
||||||
NavBar::end();
|
NavBar::end();
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ AppAsset::register($this);
|
|||||||
$menuItems[] = ['label' => 'Logout (' . Yii::$app->user->identity->username .')' , 'url' => ['/site/logout']];
|
$menuItems[] = ['label' => 'Logout (' . Yii::$app->user->identity->username .')' , 'url' => ['/site/logout']];
|
||||||
}
|
}
|
||||||
echo Nav::widget([
|
echo Nav::widget([
|
||||||
'options' => ['class' => 'navbar-nav pull-right'],
|
'options' => ['class' => 'navbar-nav navbar-right'],
|
||||||
'items' => $menuItems,
|
'items' => $menuItems,
|
||||||
]);
|
]);
|
||||||
NavBar::end();
|
NavBar::end();
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ AppAsset::register($this);
|
|||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
echo Nav::widget([
|
echo Nav::widget([
|
||||||
'options' => ['class' => 'navbar-nav pull-right'],
|
'options' => ['class' => 'navbar-nav navbar-right'],
|
||||||
'items' => [
|
'items' => [
|
||||||
['label' => 'Home', 'url' => ['/site/index']],
|
['label' => 'Home', 'url' => ['/site/index']],
|
||||||
['label' => 'About', 'url' => ['/site/about']],
|
['label' => 'About', 'url' => ['/site/about']],
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ NavBar::begin([
|
|||||||
'options' => ['class' => 'navbar-inverse navbar-fixed-top'],
|
'options' => ['class' => 'navbar-inverse navbar-fixed-top'],
|
||||||
]);
|
]);
|
||||||
echo Nav::widget([
|
echo Nav::widget([
|
||||||
'options' => ['class' => 'nav navbar-nav pull-right'],
|
'options' => ['class' => 'nav navbar-nav navbar-right'],
|
||||||
'items' => [
|
'items' => [
|
||||||
['label' => 'Home', 'url' => ['default/index']],
|
['label' => 'Home', 'url' => ['default/index']],
|
||||||
['label' => 'Help', 'url' => 'http://www.yiiframework.com/doc/guide/topics.gii'],
|
['label' => 'Help', 'url' => 'http://www.yiiframework.com/doc/guide/topics.gii'],
|
||||||
|
|||||||
Reference in New Issue
Block a user