ns / ace-sonata-bundle
此包集成了sonata管理面板和ace包
2.1.7
2018-11-13 21:44 UTC
Requires
- php: >=5.3.3
- ns/ace-bundle: ^1.5|^2.0|^3.0
- sonata-project/admin-bundle: ^3.0
- symfony/symfony: ^2.8|^3.0
Requires (Dev)
- liip/rmt: ~1.1
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