2017 © Pedro Peláez
 

yii2-extension yii2-users

You users

image

suver/yii2-users

You users

  • Tuesday, October 11, 2016
  • by suver
  • Repository
  • 1 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 50 % Grown

The README.md

Frapse Users

Your Users, (*1)

Installation

Either run, (*2)

php composer.phar require suver/yii2-users

or add, (*3)

"suver/yii2-users": "*"

Install migrations, (*4)

// install module migrations
yii migrate --migrationPath=@vendor/suver/yii2-users/migrations

// install system rbac migrations
yii migrate --migrationPath=@yii/rbac/migrations

Configurations

Add this module in your modules and bootsrap directive, (*5)

'bootstrap' => [
    'notifications',
],
'modules' => [
    'notifications' => [
        'class' => 'suver\behavior\notifications\Module',
        //      if you wont changed GridView or DataView classes
        //'dataViewWidget' => '\backend\widgets\DataView',
        //'gridViewWidget' => '\backend\widgets\GridView',
    ],
],
'components' => [
    'yii2-users' => [
        'class' => 'yii\rbac\DbManager',
    ],
];

or if you wont include module with access rule configuration you must configure module with as access directive like example, (*6)

'bootstrap' => [
    'notifications',
],
'modules' => [
        'notifications' => [
            'class' => 'suver\behavior\notifications\Module',
            'as access' => [
                'class' => 'yii\filters\AccessControl',
                'rules' => [
                    [
                        'controllers'=>['notifications/default'],
                        'allow' => true,
                        'roles' => ['@']                        
                    ],
                    [
                        'controllers'=>['notifications/list'],
                        'allow' => true,
                        'roles' => ['@']                        
                    ],
                    [
                        'controllers'=>['notifications/template'],
                        'allow' => true,
                        'roles' => ['@']                        
                    ],
                ]
            ]
        ],
    ],

How USE




The Versions

11/10 2016

dev-master

9999999-dev

You users

  Sources   Download

Apache-2.0

The Requires

 

extension yii2 users farpse rbck

11/10 2016

1.0.0

1.0.0.0

You users

  Sources   Download

Apache-2.0

The Requires

 

extension yii2 users farpse rbck