mandarinmedien/mmcmfadminbundle

此SymfonyBundles将所有MMCmf-SymfonyBundles组合成一个完全功能化的页面管理系统。

安装: 90

依赖: 0

建议: 0

安全: 0

星标: 0

关注者: 5

分支: 0

开放问题: 0

类型:symfony-bundle

0.1.19 2018-03-21 14:41 UTC

README

追加到 app/AppKernel.php

...
    public function registerBundles()
    {
        $bundles = array(
            ...
            new MandarinMedien\MMCmfNodeBundle\MMCmfNodeBundle(),
            new MandarinMedien\MMCmfRoutingBundle\MMCmfRoutingBundle(),
            new MandarinMedien\MMCmfContentBundle\MMCmfContentBundle(),
            new MandarinMedien\MMCmfAdminBundle\MMCmfAdminBundle(),
            ...
            );
    ....
    }
...

追加到 app/config/config.yml

...
imports:
    - ...
    - { resource: '@MMCmfAdminBundle/Resources/config/config.yml' }
    - { resource: '@MMCmfContentBundle/Resources/config/config.yml' }
    - ...   
...

追加到 App/config/routing.yml

...

mm_cmf_admin:
    resource: "@MMCmfAdminBundle/Resources/config/routing.yml"
    
mm_cmf_content:
    resource: "@MMCmfContentBundle/Resources/config/routing.yml"
    prefix:   /mmcmfcontent

... other routings ...
    
# put this at the very last     
mm_cmf_routing:
    resource: "@MMCmfRoutingBundle/Resources/config/routing.yml"

...

安装并初始化资源

...
# initates the MMCmfContentBundle
shell:PROJECT_ROOT: cd vendor/mandarinmedien/mmcmfcontentbundle/MandarinMedien/MMCmfContentBundle && bower update && cd ../../../../../ && app/console as:in --symlink && app/console assetic:dump
# initates the MMCmfAdminBundle
shell:PROJECT_ROOT: cd vendor/mandarinmedien/mmcmfadminbundle/MandarinMedien/MMCmfAdminBundle && bower update && cd ../../../../../ && app/console as:in --symlink && app/console assetic:dump
shell:PROJECT_ROOT: app/console as:wa

...