ns/ace-sonata-bundle

此包集成了sonata管理面板和ace包

安装量: 3,384

依赖者: 1

建议者: 0

安全性: 0

星级: 1

关注者: 2

分支: 0

开放问题: 0

语言:HTML

类型:symfony-bundle

2.1.7 2018-11-13 21:44 UTC

README

使用composer.json安装

如果您使用composer管理项目,只需将以下行添加到您的composer.json文件中

{
    "require": {
        "ns/ace-sonata-bundle": "dev-master"
    }
}

然后更新供应商库

composer.phar update
# OR
composer.phar update ns/ace-sonata-bundle # to only update the bundle

注册包

您必须在您的内核中注册此包

<?php

// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new NS\AceSonataBundle\NSAceSonataBundle(),
    );
    // ...
}

配置

配置sonata以使用ace包主题布局

#app/config/config.yml
sonata_admin:
  templates:
    layout: NSAceSonataBundle::layout.html.twig
    pager_links: NSAceSonataBundle::pager.html.twig
    edit: NSAceSonataBundle:CRUD:edit.html.twig