kerneldos/yii2-admin-modules

The Yii2 extension of module management

1.4 2020-11-17 15:38 UTC

This package is auto-updated.

Last update: 2024-06-14 21:54:42 UTC


README

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.