меню фронтенд

This commit is contained in:
Glambertessa 2019-11-18 13:39:26 +03:00
parent 2ff6ed6414
commit 6037c69b85
2 changed files with 2 additions and 3 deletions

View File

@ -8,6 +8,7 @@ $params = array_merge(
return [ return [
'id' => 'app-frontend', 'id' => 'app-frontend',
'name' => 'Guild',
'basePath' => dirname(__DIR__), 'basePath' => dirname(__DIR__),
'bootstrap' => ['log'], 'bootstrap' => ['log'],
'controllerNamespace' => 'frontend\controllers', 'controllerNamespace' => 'frontend\controllers',

View File

@ -38,9 +38,7 @@ AppAsset::register($this);
], ],
]); ]);
$menuItems = [ $menuItems = [
['label' => 'Home', 'url' => ['/site/index']], ['label' => 'Главная', 'url' => ['/site/index']],
['label' => 'About', 'url' => ['/site/about']],
['label' => 'Contact', 'url' => ['/site/contact']],
]; ];
if (Yii::$app->user->isGuest) { if (Yii::$app->user->isGuest) {
$menuItems[] = ['label' => 'Signup', 'url' => ['/site/signup']]; $menuItems[] = ['label' => 'Signup', 'url' => ['/site/signup']];