e015/common


README

Plugin for E015 common modules.

Installation

1. The preferred way to install this extension is through composer.

Either run

composer require e015/common

or add this row

"e015/common": "dev-master"

to the require section of your composer.json file.

2. Add module to your main config in backend:

<?php
'modules' => [
    'e015common' => [
        'class' => 'e015\common\Module',
    ],
],

3. Apply migrations

php yii migrate/up --migrationPath=@vendor/e015/common/src/migrations

or add this row to your migrations config in console:

<?php
return [
    '@vendor/e015/common/src/migrations',
];

4. Add configuration to tag module. In backend/config/modules-amos.php add configuration like this:

<?php

if (isset($modules['tag'])) {
    ...
    if (isset($modules['e015common'])) {
        $modules['tag']['modelsEnabled'][] = 'e015\common\models\Adherent';
    }
    ...
}

Then go in the tag manager and configure the roles for the trees you want for this model.