меню фронтенд
This commit is contained in:
parent
2ff6ed6414
commit
6037c69b85
@ -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',
|
||||||
|
@ -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']];
|
||||||
|
Loading…
Reference in New Issue
Block a user