mandarinmedien/mmcmfcontentbundle

这是 doctrine 内容实体和 twig 之间的桥梁,将成为 MMCmfBundle 的基础

安装: 156

依赖: 1

建议者: 0

安全: 0

星标: 0

关注者: 4

分支: 0

开放问题: 0

语言:JavaScript

类型:symfony-bundle

0.3.5 2023-10-06 08:17 UTC

README

添加到 app/AppKernel.php

您需要将包添加到您的 app/AppKernel.php。

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

添加到 app/config/config.yml

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

配置 -> app/config/config.yml

...
mm_cmf_content:
    content_nodes:
        contentNode:
            templates:
              - { name: 'default' }
              - { name: 'tile' }
        myCustomContentNode:
            templates:
              - { name: 'default' }
...

安装并初始化资源

...
shell:PROJECT_ROOT: cd  vendor/mandarinmedien/mmcmfcontentbundle/MandarinMedien/MMCmfContentBundle && bower update && cd ../../../../../ && bin/console as:in --symlink && bin/console assetic:dump
...