zacksleo/yii2-cms

yii2 cms 模块

安装量: 2,724

依赖关系: 1

建议者: 0

安全性: 0

星标: 2

关注者: 3

分支: 0

公开问题: 0

类型:yii2-extension

1.3.9 2018-08-09 12:07 UTC

This package is auto-updated.

Last update: 2024-09-08 07:20:54 UTC


README

Latest Stable Version Total Downloads License Code Climate Scrutinizer Code Quality Code Coverage

快速开始

通过 composer 安装

   composer require zacksleo/yii2-cms
   

迁移


   yii migrate/up --migrationPath=@vendor/zacksleo/yii2-cms/migrations

组件


'component'=>[
        
    'user' => [
        'identityClass' => 'zacksleo\yii2\backend\models\Admin',
        'enableAutoLogin' => true,
        'loginUrl' => ['site/login'],
        'identityCookie' => ['name' => '_identity-backend', 'httpOnly' => true, 'path' => '/admin'],
    ],
    'cache' => [
        'class' => 'yii\caching\ApcCache',
        'useApcu' => true,
    ],
    'settings' => [
        'class' => 'pheme\settings\components\Settings',
    ],
    'plugin' => [
        'class' => 'zacksleo\yii2\plugin\components.HookRender'
    ],
    'authManager' => [
        'class' => 'yii\rbac\PhpManager',
    ],
    'as access' => [
        'class' => 'mdm\admin\components\AccessControl',
        'allowActions' => [
            'admin/*'
        ]
    ]
]