Commit 68bb4394330028b62c850cd475f2dd6b10cedde6
1 parent
0e3f5867
-Menu items fixed
Showing
3 changed files
with
21 additions
and
21 deletions
Show diff stats
backend/views/layouts/menu_blog.php
| @@ -8,24 +8,24 @@ | @@ -8,24 +8,24 @@ | ||
| 8 | 'items' => [ | 8 | 'items' => [ |
| 9 | [ | 9 | [ |
| 10 | 'label' => \Yii::t('catalog', 'Articles'), | 10 | 'label' => \Yii::t('catalog', 'Articles'), |
| 11 | - 'url' => [ 'blog-article/index' ], | 11 | + 'url' => [ '/blog-article/index' ], |
| 12 | 'icon' => 'file-text', | 12 | 'icon' => 'file-text', |
| 13 | ], | 13 | ], |
| 14 | [ | 14 | [ |
| 15 | 'label' => \Yii::t('catalog', 'Categories'), | 15 | 'label' => \Yii::t('catalog', 'Categories'), |
| 16 | - 'url' => [ 'blog-category/index' ], | 16 | + 'url' => [ '/blog-category/index' ], |
| 17 | 'icon' => 'book', | 17 | 'icon' => 'book', |
| 18 | ], | 18 | ], |
| 19 | [ | 19 | [ |
| 20 | 'label' => \Yii::t('catalog', 'Tags'), | 20 | 'label' => \Yii::t('catalog', 'Tags'), |
| 21 | - 'url' => [ 'blog-tag/index' ], | 21 | + 'url' => [ '/blog-tag/index' ], |
| 22 | 'icon' => 'tag', | 22 | 'icon' => 'tag', |
| 23 | ], | 23 | ], |
| 24 | ], | 24 | ], |
| 25 | ], | 25 | ], |
| 26 | [ | 26 | [ |
| 27 | 'label' => \Yii::t('catalog', 'Comments'), | 27 | 'label' => \Yii::t('catalog', 'Comments'), |
| 28 | - 'url' => [ 'comment/index' ], | 28 | + 'url' => [ '/comment/index' ], |
| 29 | 'icon' => 'comment-o', | 29 | 'icon' => 'comment-o', |
| 30 | 'active' => function () { | 30 | 'active' => function () { |
| 31 | return \Yii::$app->controller->id === 'comment'; | 31 | return \Yii::$app->controller->id === 'comment'; |
backend/views/layouts/menu_main.php
| @@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
| 31 | ], | 31 | ], |
| 32 | [ | 32 | [ |
| 33 | 'label' => \Yii::t('core', 'Static pages'), | 33 | 'label' => \Yii::t('core', 'Static pages'), |
| 34 | - 'url' => [ 'page/index' ], | 34 | + 'url' => [ '/page/index' ], |
| 35 | 'icon' => 'file-text', | 35 | 'icon' => 'file-text', |
| 36 | 'active' => function () { | 36 | 'active' => function () { |
| 37 | return \Yii::$app->controller->id === 'page'; | 37 | return \Yii::$app->controller->id === 'page'; |
| @@ -44,17 +44,17 @@ | @@ -44,17 +44,17 @@ | ||
| 44 | 'items' => [ | 44 | 'items' => [ |
| 45 | [ | 45 | [ |
| 46 | 'label' => \Yii::t('core', 'Seo pages'), | 46 | 'label' => \Yii::t('core', 'Seo pages'), |
| 47 | - 'url' => [ 'alias/index' ], | 47 | + 'url' => [ '/alias/index' ], |
| 48 | 'icon' => 'file-text', | 48 | 'icon' => 'file-text', |
| 49 | ], | 49 | ], |
| 50 | [ | 50 | [ |
| 51 | 'label' => \Yii::t('core', 'Robots'), | 51 | 'label' => \Yii::t('core', 'Robots'), |
| 52 | - 'url' => [ 'settings/robots' ], | 52 | + 'url' => [ '/settings/robots' ], |
| 53 | 'icon' => 'android', | 53 | 'icon' => 'android', |
| 54 | ], | 54 | ], |
| 55 | [ | 55 | [ |
| 56 | 'label' => \Yii::t('core', 'Codes'), | 56 | 'label' => \Yii::t('core', 'Codes'), |
| 57 | - 'url' => [ 'settings/codes' ], | 57 | + 'url' => [ '/settings/codes' ], |
| 58 | 'icon' => 'code', | 58 | 'icon' => 'code', |
| 59 | ], | 59 | ], |
| 60 | [ | 60 | [ |
backend/views/layouts/menu_shop.php
| @@ -9,27 +9,27 @@ | @@ -9,27 +9,27 @@ | ||
| 9 | 'items' => [ | 9 | 'items' => [ |
| 10 | [ | 10 | [ |
| 11 | 'label' => \Yii::t('catalog', 'Categories'), | 11 | 'label' => \Yii::t('catalog', 'Categories'), |
| 12 | - 'url' => [ 'category/index' ], | 12 | + 'url' => [ '/category/index' ], |
| 13 | 'icon' => 'file-text', | 13 | 'icon' => 'file-text', |
| 14 | ], | 14 | ], |
| 15 | [ | 15 | [ |
| 16 | 'label' => \Yii::t('catalog', 'Brands'), | 16 | 'label' => \Yii::t('catalog', 'Brands'), |
| 17 | - 'url' => [ 'brand/index' ], | 17 | + 'url' => [ '/brand/index' ], |
| 18 | 'icon' => 'file-text', | 18 | 'icon' => 'file-text', |
| 19 | ], | 19 | ], |
| 20 | [ | 20 | [ |
| 21 | 'label' => \Yii::t('catalog', 'Products'), | 21 | 'label' => \Yii::t('catalog', 'Products'), |
| 22 | - 'url' => [ 'product/index' ], | 22 | + 'url' => [ '/product/index' ], |
| 23 | 'icon' => 'gift', | 23 | 'icon' => 'gift', |
| 24 | ], | 24 | ], |
| 25 | [ | 25 | [ |
| 26 | 'label' => \Yii::t('catalog', 'Import'), | 26 | 'label' => \Yii::t('catalog', 'Import'), |
| 27 | - 'url' => [ 'import/index' ], | 27 | + 'url' => [ '/import/index' ], |
| 28 | 'icon' => 'download', | 28 | 'icon' => 'download', |
| 29 | ], | 29 | ], |
| 30 | [ | 30 | [ |
| 31 | 'label' => \Yii::t('catalog', 'Export'), | 31 | 'label' => \Yii::t('catalog', 'Export'), |
| 32 | - 'url' => [ 'export/index' ], | 32 | + 'url' => [ '/export/index' ], |
| 33 | 'icon' => 'upload', | 33 | 'icon' => 'upload', |
| 34 | ], | 34 | ], |
| 35 | ], | 35 | ], |
| @@ -45,11 +45,11 @@ | @@ -45,11 +45,11 @@ | ||
| 45 | 'items' => [ | 45 | 'items' => [ |
| 46 | [ | 46 | [ |
| 47 | 'label' => \Yii::t('app', 'Complementary'), | 47 | 'label' => \Yii::t('app', 'Complementary'), |
| 48 | - 'url' => [ 'product-option-group-complementary/index' ], | 48 | + 'url' => [ '/product-option-group-complementary/index' ], |
| 49 | ], | 49 | ], |
| 50 | [ | 50 | [ |
| 51 | 'label' => \Yii::t('app', 'Exclusion'), | 51 | 'label' => \Yii::t('app', 'Exclusion'), |
| 52 | - 'url' => [ 'product-option-group-exclusion/index' ], | 52 | + 'url' => [ '/product-option-group-exclusion/index' ], |
| 53 | ], | 53 | ], |
| 54 | ], | 54 | ], |
| 55 | ], | 55 | ], |
| @@ -59,11 +59,11 @@ | @@ -59,11 +59,11 @@ | ||
| 59 | 'items' => [ | 59 | 'items' => [ |
| 60 | [ | 60 | [ |
| 61 | 'label' => \Yii::t('app', 'Complementary'), | 61 | 'label' => \Yii::t('app', 'Complementary'), |
| 62 | - 'url' => [ 'variant-option-group-complementary/index' ], | 62 | + 'url' => [ '/variant-option-group-complementary/index' ], |
| 63 | ], | 63 | ], |
| 64 | [ | 64 | [ |
| 65 | 'label' => \Yii::t('app', 'Exclusion'), | 65 | 'label' => \Yii::t('app', 'Exclusion'), |
| 66 | - 'url' => [ 'variant-option-group-exclusion/index' ], | 66 | + 'url' => [ '/variant-option-group-exclusion/index' ], |
| 67 | ], | 67 | ], |
| 68 | ], | 68 | ], |
| 69 | ], | 69 | ], |
| @@ -76,22 +76,22 @@ | @@ -76,22 +76,22 @@ | ||
| 76 | 'items' => [ | 76 | 'items' => [ |
| 77 | [ | 77 | [ |
| 78 | 'label' => \Yii::t('order', 'Orders'), | 78 | 'label' => \Yii::t('order', 'Orders'), |
| 79 | - 'url' => [ 'order/index' ], | 79 | + 'url' => [ '/order/index' ], |
| 80 | 'icon' => 'first-order', | 80 | 'icon' => 'first-order', |
| 81 | ], | 81 | ], |
| 82 | [ | 82 | [ |
| 83 | 'label' => \Yii::t('order', 'Label'), | 83 | 'label' => \Yii::t('order', 'Label'), |
| 84 | - 'url' => [ 'label/index' ], | 84 | + 'url' => [ '/label/index' ], |
| 85 | 'icon' => 'tag', | 85 | 'icon' => 'tag', |
| 86 | ], | 86 | ], |
| 87 | [ | 87 | [ |
| 88 | 'label' => \Yii::t('order', 'Delivery'), | 88 | 'label' => \Yii::t('order', 'Delivery'), |
| 89 | - 'url' => [ 'delivery/index' ], | 89 | + 'url' => [ '/delivery/index' ], |
| 90 | 'icon' => 'truck', | 90 | 'icon' => 'truck', |
| 91 | ], | 91 | ], |
| 92 | [ | 92 | [ |
| 93 | 'label' => \Yii::t('order', 'Payment'), | 93 | 'label' => \Yii::t('order', 'Payment'), |
| 94 | - 'url' => [ 'payment/index' ], | 94 | + 'url' => [ '/payment/index' ], |
| 95 | 'icon' => 'money', | 95 | 'icon' => 'money', |
| 96 | ], | 96 | ], |
| 97 | ], | 97 | ], |