Browse Source

修改模块配置文件

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
0cfd3bc5f5
  1. 8
      backend/config/main.php
  2. 6
      backend/views/layouts/sidebar.php

8
backend/config/main.php

@ -11,7 +11,13 @@ return [
'bootstrap' => ['log'], 'bootstrap' => ['log'],
'modules' => [ 'modules' => [
'goods' => [ 'goods' => [
'class' => 'goods\Module',
'class' => '\backend\modules\goods\Module',
],
'file' => [
'class' => '\backend\modules\file\Module',
],
'shop' => [
'class' => '\backend\modules\shop\Module',
], ],
], ],
'components' => [ 'components' => [

6
backend/views/layouts/sidebar.php

@ -30,12 +30,12 @@ use iron\widgets\Menu;
] ]
], ],
['label' => '订单管理', 'url' => '#', 'icon' => 'far fa-list-alt', 'items' => [ ['label' => '订单管理', 'url' => '#', 'icon' => 'far fa-list-alt', 'items' => [
['label' => '订单列表', 'url' => ['/order/index', 'tag' => 'new']],
['label' => '订单列表', 'url' => ['/shop/order/index', 'tag' => 'new']],
], ],
], ],
['label' => '配送服务', 'url' => '#', 'icon' => 'far fa-shipping-fast', 'items' => [ ['label' => '配送服务', 'url' => '#', 'icon' => 'far fa-shipping-fast', 'items' => [
['label' => '上门自提', 'url' => ['/taking-site/index']],
['label' => '运费模板', 'url' => ['/express-template/index']],
['label' => '上门自提', 'url' => ['/shop/taking-site/index']],
['label' => '运费模板', 'url' => ['/shop/express-template/index']],
] ]
], ],

Loading…
Cancel
Save