定制 th3mouk/cms-page-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

th3mouk/cms-page-bundle

最新稳定版本:2.0.0

Composer 安装命令:

composer require th3mouk/cms-page-bundle

包简介

Symfony CMSPageBundle extends of Sonata Project

README 文档

README

Bundle extending SonataPageBundle in order to simplify the use by developers and future users, trying to not alter the original flexibility, and to give them new basic tools and views.

SensioLabsInsight Latest Stable Version Total Downloads Build Status Latest Unstable Version License

This bundle is part of the preconfigured CMS based on Symfony and Sonata : CMSStarter | CMSCoreBundle

SonataPageBundle

The use of this bundle require understanding of the SonataPageBundle.

Installation

Composer

composer require th3mouk/cms-page-bundle ^2.0

SonataPageBundle

Install the original SonataPageBundle.

Easy extends

app/console sonata:easy-extends:generate Th3MoukCMSPageBundle

Update Kernel

# app/AppKernel.php
...
new Th3Mouk\CMSPageBundle\Th3MoukCMSPageBundle(),
new Application\Th3Mouk\CMSPageBundle\ApplicationTh3MoukCMSPageBundle(),
...

Configuration

Create the following files:

# app/config/bundles/override.yml
parameters:
    #Overload PageAdmin
    sonata.page.admin.page.class: Th3Mouk\CMSPageBundle\Admin\PageAdmin
    #Overload PageManager
    sonata.page.manager.page.class: Th3Mouk\CMSPageBundle\Entity\PageManager
    #Overload Transformer otherwise additional attributes will be non-serialized
    sonata.page.transformer.class: Th3Mouk\CMSPageBundle\Entity\Transformer
    #Overload PageAdminController
    sonata.page.admin.page.controller: Th3MoukCMSPageBundle:PageAdmin
# app/config/sonata/sonata_page.yml
sonata_page:
    class:
        page:     Application\Th3Mouk\CMSPageBundle\Entity\Page
        snapshot: Application\Th3Mouk\CMSPageBundle\Entity\Snapshot
        block:    Application\Th3Mouk\CMSPageBundle\Entity\Block
        site:     Application\Th3Mouk\CMSPageBundle\Entity\Site

Include them:

# app/config/config.yml
imports:
    # Sonata Page Bundle
    - { resource: sonata/sonata_page.yml }

    # Override Vendors Parameters
    - { resource: bundles/override.yml }

Please

Feel free to improve all of this work, project or bundles.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-12