承接 cookyii/module-page 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

cookyii/module-page

Composer 安装命令:

composer require cookyii/module-page

包简介

Static pages management module for Cookyii CMF

README 文档

README

Installation

composer require cookyii/module-page:dev-master

Configuration

1. Update config

In backend app config in section modules add cookyii\modules\Page\backend\Module and in section bootstrap add page:

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

return [
    // ...
    'bootstrap' => [
        // some components ...
        'page'
    ],
    'modules' => [
        // some modules ...
        'page' => 'cookyii\modules\Page\backend\Module',
    ],
    // ...
];

In frontend app config in section modules add cookyii\modules\Page\frontend\Module and in section bootstrap add page:

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

return [
    // ...
    'bootstrap' => [
        // some components ...
        'page'
    ],
    'modules' => [
        // some modules ...
        'page' => 'cookyii\modules\Page\frontend\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', 'page', 'postman', 'media',
    ],
    'modules' => [
        // some modules ...
        'account' => 'cookyii\modules\Account\backend\Module',
        'page' => 'cookyii\modules\Page\backend\Module',
        'postman' => 'cookyii\modules\Postman\backend\Module',
        'media' => 'cookyii\modules\Media\backend\Module',
    ],
    // ...
];
// ./frontend-app/config/app.php

return [
    // ...
    'bootstrap' => [
        // some components ...
        'page', 'media',
    ],
    'modules' => [
        // some modules ...
        'page' => 'cookyii\modules\Page\frontend\Module',
        'media' => 'cookyii\modules\Media\backend\Module',
    ],
    // ...
];

3. Add new permissions

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

// ./common/commands/RbacCommand.php

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

4. Update permissions

./backend rbac/update

5. Execute new migrations

./frontend migrate

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-06-18