2017 © Pedro Peláez
 

yii2-extension yii2-attache

Will ease up the pains of combining yii2-user and yii2-admin extensions.

image

hector-del-rio/yii2-attache

Will ease up the pains of combining yii2-user and yii2-admin extensions.

  • Friday, January 22, 2016
  • by hector-del-rio
  • Repository
  • 1 Watchers
  • 0 Stars
  • 92 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

yii2-attache

Will ease up the pains of combining yii2-user and yii2-admin extensions., (*1)

Usage

Add in config/common.php (or config file that applies to web and console applications):, (*2)

    'components' => [
        ...
        'authManager' => [
            'class' => 'yii\rbac\DbManager'
        ],
        ...
    ],
    ...
    'modules' => [
        ...
        'user' => [
            'class' => 'dektrium\user\Module',
            // yii2-user options
        ],
        'admin' => [
            'class' => 'mdm\admin\Module',
            // yii2-admin options
        ],
        ...
    ],
    ...

in config/web.php (or config file that applies ONLY to web application), (*3)

    'bootstrap' => [
        ...
        'hectordelrio\attache\Bootstrap'
        // or if you need to configure something:
        [
            'class' => 'hectordelrio\attache\Bootstrap',
            'option1' => 'value1',
            'option2' => 'value2',
            ...
        ]
        ...
    ],
    'as access' => [
        'class' => 'mdm\admin\components\AccessControl',
        // yii2-admin access behavior options
    ],

Then run:, (*4)

    $ ./yii migrate --migrationPath="@app/vendor/hector-del-rio/yii2-attache/migrations"

Options

  • enableAdminsFromDatabase : defaults true. It will list all users with admin role to yii2-user's admins array.
  • enableStoreProfileInSession : defaults true. Allows you to access user profile via session: Yii::$app->session['profile']['name'].
  • db: defaults to 'db'. If your database component is called differently, you can specify it here.

The Versions

22/01 2016

dev-master

9999999-dev

Will ease up the pains of combining yii2-user and yii2-admin extensions.

  Sources   Download

MIT

The Requires

 

by Hector del Rio

authorization user auth yii2 yii2-user login role permission yii2-admin

22/01 2016

1.1.8

1.1.8.0

Will ease up the pains of combining yii2-user and yii2-admin extensions.

  Sources   Download

MIT

The Requires

 

by Hector del Rio

authorization user auth yii2 yii2-user login role permission yii2-admin

21/01 2016

1.1.7

1.1.7.0

Will ease up the pains of combining yii2-user and yii2-admin extensions.

  Sources   Download

MIT

The Requires

 

by Hector del Rio

authorization user auth yii2 yii2-user login role permission yii2-admin

21/01 2016

1.1.6

1.1.6.0

Will ease up the pains of combining yii2-user and yii2-admin extensions.

  Sources   Download

MIT

The Requires

 

by Hector del Rio

authorization user auth yii2 yii2-user login role permission yii2-admin

19/01 2016

1.1.5

1.1.5.0

Will ease up the pains of combining yii2-user and yii2-admin extensions.

  Sources   Download

MIT

The Requires

 

by Hector del Rio

authorization user auth yii2 yii2-user login role permission yii2-admin

19/01 2016

1.1.4

1.1.4.0

Will ease up the pains of combining yii2-user and yii2-admin extensions.

  Sources   Download

MIT

The Requires

 

by Hector del Rio

authorization user auth yii2 yii2-user login role permission yii2-admin

21/10 2015

1.1.3

1.1.3.0

Will ease up the pains of combining yii2-user and yii2-admin extensions.

  Sources   Download

MIT

The Requires

 

by Hector del Rio

authorization user auth yii2 yii2-user login role permission yii2-admin

17/09 2015

1.1.2

1.1.2.0

Will ease up the pains of combining yii2-user and yii2-admin extensions.

  Sources   Download

MIT

The Requires

 

by Hector del Rio

authorization user auth yii2 yii2-user login role permission yii2-admin

25/08 2015

1.1.1

1.1.1.0

Will ease up the pains of combining yii2-user and yii2-admin extensions.

  Sources   Download

MIT

The Requires

 

by Hector del Rio

authorization user auth yii2 yii2-user login role permission yii2-admin

24/08 2015

1.1.0

1.1.0.0

Will ease up the pains of combining yii2-user and yii2-admin extensions.

  Sources   Download

MIT

The Requires

 

by Hector del Rio

authorization user auth yii2 yii2-user login role permission yii2-admin

16/08 2015

1.0.0

1.0.0.0

Will ease up the pains of combining yii2-user and yii2-admin extensions.

  Sources   Download

MIT

The Requires

 

by Hector del Rio

authorization user auth yii2 yii2-user login role permission yii2-admin