exoodev / yii2-system
There is no license information available for the latest version (1.0.3) of this package.
The System extension for the Yii2 framework
1.0.3
2019-05-20 09:56 UTC
Requires
- bizley/migration: ^3.1
- codemix/yii2-localeurls: 1.4.6
- creocoder/yii2-flysystem: ^0.9.0
- creocoder/yii2-nested-sets: 0.9.*
- exoodev/yii2-exookit: *
- exoodev/yii2-settings: *
- exoodev/yii2-uikit: *
- samdark/yii2-webshell: ~2.0
- yii2tech/ar-dynattribute: *
- yii2tech/ar-linkmany: *
- yii2tech/ar-position: *
- yii2tech/ar-variation: *
- yii2tech/file-storage: ^1.1
- yii2tech/sitemap: *
- yiisoft/yii2: ~2.0.14
- yiisoft/yii2-authclient: ~2.1.0
- yiisoft/yii2-imagine: ^2.0
- yiisoft/yii2-swiftmailer: ~2.0.0 || ~2.1.0
This package is auto-updated.
Last update: 2025-02-25 23:20:56 UTC
README
========================
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist exoo/yii2-system
or add
"exoo/yii2-system": "*"
to the require section of your composer.json.
Usage
- Example backend configuration:
return [
'modules' => [
'system' => [
'class' => 'exoo\system\Module',
'isBackend' => true,
],
],
'components' => [
'user' => [
'identityClass' => 'exoo\system\models\User',
'enableAutoLogin' => true,
'loginUrl' => ['/system/site/login'],
'identityCookie' => ['name' => '_identity-backend', 'httpOnly' => true],
],
],
];
- Example frontend configuration:
return [
'modules' => [
'system' => [
'class' => 'exoo\system\Module',
]
],
];
- Example console configuration:
return [
'modules' => [
'system' => [
'class' => 'exoo\system\Module',
'controllerNamespace' => 'exoo\system\controllers\console',
]
],
];
- Run the migrations
yii migrate --migrationPath=@yii/log/migrations/
yii migrate --migrationPath=@yii/rbac/migrations
yii migrate --migrationPath=@exoo/system/migrations
Init rbac
yii system/rbac/init
Role assignment for super admin
yii system/user/assign-role admin 1