Skip to content

vov4ik08/yii2-admin

 
 

Repository files navigation

Auth Extension for Yii 2

Installation

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.

Usage

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

About

Auth manager for Yii2

Resources

Stars

Watchers

Forks

Packages

No packages published