Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Nov 17, 2019
1 parent 6e8d2ae commit d426258
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 43 deletions.
39 changes: 0 additions & 39 deletions src/config/admin/menu.php

This file was deleted.

44 changes: 40 additions & 4 deletions src/config/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,45 @@
* @author Semenov Alexander <[email protected]>
*/
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',
],
],
];

0 comments on commit d426258

Please sign in to comment.