|
|
@ -33,13 +33,13 @@ use yii\helpers\Html; |
|
|
|
* // not just as 'controller' even if default action is used. |
|
|
|
* // not just as 'controller' even if default action is used. |
|
|
|
* ['label' => 'Home', 'url' => ['site/index']], |
|
|
|
* ['label' => 'Home', 'url' => ['site/index']], |
|
|
|
* // 'Products' menu item will be selected as long as the route is 'product/index' |
|
|
|
* // 'Products' menu item will be selected as long as the route is 'product/index' |
|
|
|
* ['label' => 'Products', 'url' => ['product/index'), 'items' => [ |
|
|
|
* ['label' => 'Products', 'url' => ['product/index'], 'items' => [ |
|
|
|
* ['label' => 'New Arrivals', 'url' => ['product/index', 'tag' => 'new']], |
|
|
|
* ['label' => 'New Arrivals', 'url' => ['product/index', 'tag' => 'new']], |
|
|
|
* ['label' => 'Most Popular', 'url' => ['product/index', 'tag' => 'popular']], |
|
|
|
* ['label' => 'Most Popular', 'url' => ['product/index', 'tag' => 'popular']], |
|
|
|
* ]], |
|
|
|
* ]], |
|
|
|
* ['label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest], |
|
|
|
* ['label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest], |
|
|
|
* ), |
|
|
|
* ], |
|
|
|
* )); |
|
|
|
* ]); |
|
|
|
* ~~~ |
|
|
|
* ~~~ |
|
|
|
* |
|
|
|
* |
|
|
|
* @author Qiang Xue <qiang.xue@gmail.com> |
|
|
|
* @author Qiang Xue <qiang.xue@gmail.com> |
|
|
|