AdminlteBundle is a component that allows easy integration to Symfony projects.
Requirements
- AdminLTE 2 - almsaeedstudio.
- Symfony 2.x or 3.x applications.
$ composer require jorgecaso/adminltebundle
Use Composer installed globally, as explained in the Composer documentation.
<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Jorgecaso\AdminlteBundle\JorgecasoAdminlteBundle(),
);
}
// ...
}
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 :) .)
This software is published under the MIT License