greibit/panel-admin-bundle

GreibitPanelAdminBundle provide base templates for admin panels in Symfony


Keywords
admin, bootstrap, panel
License
MIT

Documentation

PanelAdminBundle

This Repository is UNDER DEVELOPMENT, it's not recommended to use it

PanelAdminBundle integrates a Admin Panel template in your Symfony Project and provide adapted CRUD generator.

Installation

Add the bundle to the composer.json of your project:

{
   "require": {
        "greibit/panel-admin-bundle": "dev-master"
    }
}

Enable the bundle in the AppKernel.php of your Symfony project:

// app/AppKernel.php
//...
class AppKernel extends Kernel
{
    //...
    public function registerBundles()
    {
        $bundles = array(
            ...
            new Greibit\Bundle\PanelAdminBundle\GreibitPanelAdminBundle()
        );
        //...

        return $bundles;
    }
    //...
}

Configuration

Add configuration to your config.yml:

greibit_panel_admin:
    menu_builder: "AcmeDemoBundle:Builder:sidebarMenu"
    panel_title: "Greibit Administration"

Use it!

To use the Admin Panel proposed by Greibit just extends your twig templates with the GreibitPanelAdmin layout and use the page block

{% extends 'GreibitPanelAdminBundle::layout.html.twig' %}
{% block page %} {% endblock %}

Dependencies

  • KnpMenuBundle

Bitdeli Badge