hector-del-rio/yii2-attache 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hector-del-rio/yii2-attache

最新稳定版本:1.1.8

Composer 安装命令:

composer require hector-del-rio/yii2-attache

包简介

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

README 文档

README

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

Usage

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

    '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)

    '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:

    $ ./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.

统计信息

  • 总下载量: 123
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固