Skip to content

kerneldos/yii2-admin-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-admin-modules

Latest Version on Packagist Software License Total Downloads

Install

Via composer

$ composer require --prefer-dist kerneldos/yii2-admin-modules

or add

"kerneldos/yii2-admin-modules": "~1.0"

to the require section of your composer.json file.

Apply migrations to create required tables

yii migrate --migrationPath=@kerneldos/extmodule/migrations --interactive=0

Usage

Add the module to your main config file for manual config, ex:

'modules' => [
    //...
    'admin' => [
        'class' => 'kerneldos\extmodule\Module',

        'layoutPath' => '@app/views/layouts',
        'layout' => 'main',

        'as Access' => [
            'class' => 'yii\filters\AccessControl',
            'rules' => [
                [
                    'allow' => true,
                    'roles' => ['admin'],
                ],
            ],
        ],
    ],
    //...
],

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email kerneldos@mail.ru instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published