Skip to content

arooth/module-account

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accounts management module

Installation

composer require cookyii/module-account:dev-master

Configuration

1. Update config

In backend app config in section modules add cookyii\modules\Account\backend\Module and in section bootstrap add account:

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

return [
    // ...
    'bootstrap' => [
        // some components ...
        'account'
    ],
    'modules' => [
        // some modules ...
        'account' => 'cookyii\modules\Account\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 ...
        'account', 'postman',
    ],
    'modules' => [
        // some modules ...
        'account' => 'cookyii\modules\Account\backend\Module',
        'postman' => 'cookyii\modules\Postman\backend\Module',
    ],
    // ...
];

3. Add new permissions

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

// ./common/commands/RbacCommand.php

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

4. Update permissions

./backend rbac/update

5. Execute new migrations

./frontend migrate

About

[READ ONLY] Account management module for Cookyii CMF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 87.1%
  • JavaScript 11.4%
  • CSS 1.5%