ns/ace-sonata-bundle

This bundle integrates the sonata admin panel and the ace bundle

Installs: 3 384

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Language:HTML

Type:symfony-bundle

2.1.7 2018-11-13 21:44 UTC

README

Install using composer.json

If you are using composer to manage your project, just add the following line to your composer.json file

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

Then update the vendor libraries:

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

Register the bundle

You must register the bundle in your kernel:

<?php

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

Configure

Configure sonata to use the ace bundle themed layouts.

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