Support auto-activation of Nav.
This commit is contained in:
parent
4936bba887
commit
3aaf24a55a
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
use yii\bootstrap\NavBar;
|
|
||||||
use yii\helpers\Html;
|
use yii\helpers\Html;
|
||||||
use yii\widgets\Menu;
|
use yii\bootstrap\Nav;
|
||||||
|
use yii\bootstrap\NavBar;
|
||||||
use yii\widgets\Breadcrumbs;
|
use yii\widgets\Breadcrumbs;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -28,8 +28,8 @@ app\config\AppAsset::register($this);
|
|||||||
'class' => 'navbar-inverse navbar-fixed-top',
|
'class' => 'navbar-inverse navbar-fixed-top',
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
echo Menu::widget(array(
|
echo Nav::widget(array(
|
||||||
'options' => array('class' => 'nav navbar-nav pull-right'),
|
'options' => array('class' => 'navbar-nav pull-right'),
|
||||||
'items' => array(
|
'items' => array(
|
||||||
array('label' => 'Home', 'url' => array('/site/index')),
|
array('label' => 'Home', 'url' => array('/site/index')),
|
||||||
array('label' => 'About', 'url' => array('/site/about')),
|
array('label' => 'About', 'url' => array('/site/about')),
|
||||||
|
Loading…
Reference in New Issue
Block a user