Skip to content

Commit e139335

Browse files
committed
模块配置
1 parent 803f815 commit e139335

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

config/modules.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
return [
3+
// 微信模块
4+
'wechat' => [
5+
'class' => 'callmez\wechat\Module',
6+
'modules' => [
7+
'admin' => 'callmez\wechat\modules\admin\Module' // 微信后台管理模块
8+
]
9+
],
10+
];

config/web.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
'id' => 'basic',
77
'basePath' => dirname(__DIR__),
88
'bootstrap' => ['log'],
9+
'modules' => require(__DIR__ . '/modules.php'),
910
'components' => [
1011
'request' => [
1112
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
12-
'cookieValidationKey' => '',
13+
'cookieValidationKey' => 'oxTxC600X5DGRubG2mYdBMmC4MM0C-ZB',
1314
],
1415
'cache' => [
1516
'class' => 'yii\caching\FileCache',

0 commit comments

Comments
 (0)