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

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 [
'id' => 'app-frontend',
'name' => 'Guild',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'controllerNamespace' => 'frontend\controllers',

View File

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