jorgecaso/adminltebundle

AdminLTE integration to Symfony projects.

v1.0.3 2016-12-03 14:12 UTC

This package is not auto-updated.

Last update: 2024-05-11 18:18:17 UTC


README

SensioLabsInsight

AdminlteBundle is a component that allows easy integration to Symfony projects.

Requirements

  • AdminLTE 2 - almsaeedstudio.
  • Symfony 2.x or 3.x applications.

Installation

Step 1: Download the Bundle

$ composer require jorgecaso/adminltebundle

Use Composer installed globally, as explained in the Composer documentation.

Step 2: Enable the Bundle

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Jorgecaso\AdminlteBundle\JorgecasoAdminlteBundle(),
        );
    }

    // ...
}

Example

Modify the app/Resources/views/base.html.twig file and replace the content with:

{% extends "JorgecasoAdminlteBundle:Layout:dashboard.html.twig" %}

{% block body %}

{% endblock %}

Insert the desired content into body tag. It's all. (Tip: Review the AdminLTE documentation :) .)

License

This software is published under the MIT License