diff --git a/backend/config/main.php b/backend/config/main.php index 659ff71..1f85160 100755 --- a/backend/config/main.php +++ b/backend/config/main.php @@ -23,6 +23,7 @@ 'seo' => 'artbox\core\controllers\SeoController', 'feedback' => 'artbox\core\controllers\FeedbackController', 'weblog-article' => 'artbox\weblog\controllers\ArticleController', + 'category' => 'artbox\catalog\controllers\CategoryController', ], 'components' => [ 'assetManager' => [ diff --git a/backend/views/layouts/main.php b/backend/views/layouts/main.php index f22cbb6..e5698a8 100755 --- a/backend/views/layouts/main.php +++ b/backend/views/layouts/main.php @@ -177,6 +177,18 @@ ], ], ], + [ + 'label' => \Yii::t('app', 'SEO'), + 'url' => '#', + 'icon' => 'bolt', + 'items' => [ + [ + 'label' => \Yii::t('core', 'Category'), + 'url' => [ 'category/index' ], + 'icon' => 'file-text', + ], + ], + ], ] ); echo Menu::widget( diff --git a/common/config/main.php b/common/config/main.php index c8adc95..14a5372 100755 --- a/common/config/main.php +++ b/common/config/main.php @@ -22,11 +22,15 @@ ], 'i18n' => [ 'translations' => [ - 'core' => [ + 'core' => [ 'class' => 'yii\i18n\PhpMessageSource', 'basePath' => '@artbox/core/messages', ], - 'app' => [ + 'catalog' => [ + 'class' => 'yii\i18n\PhpMessageSource', + 'basePath' => '@artbox/catalog/messages', + ], + 'app' => [ 'class' => 'yii\i18n\PhpMessageSource', 'basePath' => '@common/messages', ], -- libgit2 0.21.4