diff --git a/src/config/admin/menu.php b/src/config/admin/menu.php deleted file mode 100644 index aa8c070..0000000 --- a/src/config/admin/menu.php +++ /dev/null @@ -1,39 +0,0 @@ - - * @link http://skeeks.com/ - * @copyright 2010 SkeekS (СкикС) - * @date 12.03.2015 - */ -return [ - - 'other' => - [ - 'items' => - [ - [ - "label" => \Yii::t('skeeks/measure', 'Units of measurement'), - "img" => ['\skeeks\cms\measure\assets\Asset', 'icons/misc.png'], - - 'items' => - [ - [ - "label" => \Yii::t('skeeks/measure', 'Units of measurement'), - "url" => ["measure/admin-measure"], - "img" => ['\skeeks\cms\measure\assets\Asset', 'icons/misc.png'], - ], - - [ - "label" => \Yii::t('skeeks/measure', 'Settings'), - "url" => ["cms/admin-settings", "component" => 'skeeks\cms\measure\components\MeasureComponent'], - "img" => ['skeeks\cms\assets\CmsAsset', 'images/icons/settings.png'], - "activeCallback" => function($adminMenuItem) - { - return (bool) (\Yii::$app->request->getUrl() == $adminMenuItem->getUrl()); - }, - ], - ] - ], - ] - ] -]; \ No newline at end of file diff --git a/src/config/web.php b/src/config/web.php index 8d73be6..2ea2ace 100644 --- a/src/config/web.php +++ b/src/config/web.php @@ -6,9 +6,45 @@ * @author Semenov Alexander */ return [ - 'modules' => [ + 'components' => [ + 'backendAdmin' => [ + 'menu' => [ + 'data' => [ + + 'other' => [ + 'items' => [ + [ + "name" => ['skeeks/measure', 'Units of measurement'], + "image" => ['\skeeks\cms\measure\assets\Asset', 'icons/misc.png'], + + 'items' => + [ + [ + "name" => ['skeeks/measure', 'Units of measurement'], + "url" => ["measure/admin-measure"], + "image" => ['\skeeks\cms\measure\assets\Asset', 'icons/misc.png'], + ], + + [ + "name" => ['skeeks/measure', 'Settings'], + "url" => ["cms/admin-settings", "component" => 'skeeks\cms\measure\components\MeasureComponent'], + "image" => ['skeeks\cms\assets\CmsAsset', 'images/icons/settings.png'], + "activeCallback" => function ($adminMenuItem) { + return (bool)(\Yii::$app->request->getUrl() == $adminMenuItem->getUrl()); + }, + ], + ], + ], + ], + ], + + ], + ], + ], + ], + 'modules' => [ 'measure' => [ - 'class' => 'skeeks\cms\measure\Module', - ] - ] + 'class' => 'skeeks\cms\measure\Module', + ], + ], ]; \ No newline at end of file