add frontend basics

This commit is contained in:
2015-09-28 09:38:35 +02:00
parent 5d9587d8fd
commit 2bcaee18de
11 changed files with 580 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;
use common\components\FrotnendMenuStructure;
use frontend\components\FrontendMenuStructure;
AppAsset::register($this);
?>
@@ -27,6 +29,10 @@ AppAsset::register($this);
<div class="wrap">
<?php
$menuStruct = new FrontendMenuStructure();
$items = $menuStruct->run();
NavBar::begin([
'brandLabel' => 'My Company',
'brandUrl' => Yii::$app->homeUrl,