Commit bfe59de81c398d7c7415bb94184ccd200de05027
1 parent
8df17fe5
-Category in process
Showing
3 changed files
with
19 additions
and
2 deletions
Show diff stats
backend/config/main.php
| ... | ... | @@ -23,6 +23,7 @@ |
| 23 | 23 | 'seo' => 'artbox\core\controllers\SeoController', |
| 24 | 24 | 'feedback' => 'artbox\core\controllers\FeedbackController', |
| 25 | 25 | 'weblog-article' => 'artbox\weblog\controllers\ArticleController', |
| 26 | + 'category' => 'artbox\catalog\controllers\CategoryController', | |
| 26 | 27 | ], |
| 27 | 28 | 'components' => [ |
| 28 | 29 | 'assetManager' => [ | ... | ... |
backend/views/layouts/main.php
| ... | ... | @@ -177,6 +177,18 @@ |
| 177 | 177 | ], |
| 178 | 178 | ], |
| 179 | 179 | ], |
| 180 | + [ | |
| 181 | + 'label' => \Yii::t('app', 'SEO'), | |
| 182 | + 'url' => '#', | |
| 183 | + 'icon' => 'bolt', | |
| 184 | + 'items' => [ | |
| 185 | + [ | |
| 186 | + 'label' => \Yii::t('core', 'Category'), | |
| 187 | + 'url' => [ 'category/index' ], | |
| 188 | + 'icon' => 'file-text', | |
| 189 | + ], | |
| 190 | + ], | |
| 191 | + ], | |
| 180 | 192 | ] |
| 181 | 193 | ); |
| 182 | 194 | echo Menu::widget( | ... | ... |
common/config/main.php
| ... | ... | @@ -22,11 +22,15 @@ |
| 22 | 22 | ], |
| 23 | 23 | 'i18n' => [ |
| 24 | 24 | 'translations' => [ |
| 25 | - 'core' => [ | |
| 25 | + 'core' => [ | |
| 26 | 26 | 'class' => 'yii\i18n\PhpMessageSource', |
| 27 | 27 | 'basePath' => '@artbox/core/messages', |
| 28 | 28 | ], |
| 29 | - 'app' => [ | |
| 29 | + 'catalog' => [ | |
| 30 | + 'class' => 'yii\i18n\PhpMessageSource', | |
| 31 | + 'basePath' => '@artbox/catalog/messages', | |
| 32 | + ], | |
| 33 | + 'app' => [ | |
| 30 | 34 | 'class' => 'yii\i18n\PhpMessageSource', |
| 31 | 35 | 'basePath' => '@common/messages', |
| 32 | 36 | ], | ... | ... |