The preferred way to install this extension is through composer.
Either run
php composer.phar require mdmsoft/yii2-admin "*"
or add
"mdmsoft/yii2-admin": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply modify your application configuration as follows:
return [
'modules' => [
'admin' => 'mdm\admin\Module',
...
],
...
'components' => [
....
'authManager' => [
'class' => 'yii\rbac\PhpManager', // or use 'yii\rbac\DbManager'
]
],
'as access' => 'mdm\admin\components\AccessControl',
];
You can then access Auth manager through the following URL:
http://localhost/path/to/index.php?r=admin