|
@@ -11,14 +11,14 @@ return [
|
|
|
'basePath' => dirname(__DIR__),
|
|
'basePath' => dirname(__DIR__),
|
|
|
'bootstrap' => ['log'],
|
|
'bootstrap' => ['log'],
|
|
|
'defaultRoute' => 'main/index',//默认控制器
|
|
'defaultRoute' => 'main/index',//默认控制器
|
|
|
- 'controllerNamespace' => 'shop\controllers',
|
|
|
|
|
|
|
+ 'controllerNamespace' => 'ghs\controllers',
|
|
|
'modules' => [],
|
|
'modules' => [],
|
|
|
'components' => [
|
|
'components' => [
|
|
|
'user' => [
|
|
'user' => [
|
|
|
'identityClass' => 'common\models\xhAdmin',
|
|
'identityClass' => 'common\models\xhAdmin',
|
|
|
'enableAutoLogin' => true,
|
|
'enableAutoLogin' => true,
|
|
|
'identityCookie' => [
|
|
'identityCookie' => [
|
|
|
- 'name' => 'backendUser', // unique for backend
|
|
|
|
|
|
|
+ 'name' => 'ghsUser',
|
|
|
],
|
|
],
|
|
|
'loginUrl' => ['main/login'],
|
|
'loginUrl' => ['main/login'],
|
|
|
],
|
|
],
|