-
Notifications
You must be signed in to change notification settings - Fork 10
2.Module configuration
jinxing edited this page Jun 17, 2018
·
3 revisions
Because jinxing\admin\module inherits from yii\base\Module, some configuration of parent class can be used
Configuration item | Variable type | Defaults | Configuration instructions |
---|---|---|---|
user | string | admin | Users used by the module |
allowControllers | array | ['default'] | Controllers that do not need to verify permissions |
frameNumberSize | integer | 8 | Allow up to a few iFrame |
verifyAuthority | bool | true | Do you need permission verification? |
leftTopButtons | array | [...] | Left top button group |
userLinks | array | [...] | User related link group |
return [
'components' => [
'modules' => [
'admin' => [
'class' => 'jinxing\admin\Admin',
// Make use of that kind of user
'user' => 'admin'
// Modify the default configuration
'Configuration name' => 'The configured value',
// E.g
'verifyAuthority' => false
...
]
...
],
...
],
]