cookyii/module-postman

Emails management module for Cookyii CMF

Installs: 492

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

Type:yii2-extension

dev-master 2018-10-21 19:25 UTC

This package is not auto-updated.

Last update: 2024-11-09 18:13:31 UTC


README

Installation

composer require cookyii/module-postman:dev-master

Configuration

1. Update config

In backend app config in section modules add cookyii\modules\Postman\backend\Module and in section bootstrap add page:

// ./backend-app/config/app.php

return [
    // ...
    'bootstrap' => [
        // some components ...
        'postman'
    ],
    'modules' => [
        // some modules ...
        'postman' => 'cookyii\modules\Postman\backend\Module',
    ],
    // ...
];

2. Dependencies

Also, you need to configure the following modules (they are already downloaded):

// ./backend-app/config/app.php

return [
    // ...
    'bootstrap' => [
        // some components ...
        'postman', 'media',
    ],
    'modules' => [
        // some modules ...
        'postman' => 'cookyii\modules\Postman\backend\Module',
        'media' => 'cookyii\modules\Media\backend\Module',
    ],
    // ...
];

3. Add new permissions

In rbac/update command add merge class cookyii\modules\Page\backend\Permissions:

// ./common/commands/RbacCommand.php

class RbacCommand extends \rmrevin\yii\rbac\Command
{
    
    public $backendMerge = [
        // ...
        'cookyii\modules\Postman\backend\Permissions',
    ];
}

4. Update permissions

./backend rbac/update

5. Execute new migrations

./frontend migrate