2017 © Pedro Peláez
 

library admin-lte-bundle

Admin Theme based on the AdminLTE Template for easy integration into symfony

image

udan/admin-lte-bundle

Admin Theme based on the AdminLTE Template for easy integration into symfony

  • Thursday, April 14, 2016
  • by Udan
  • Repository
  • 1 Watchers
  • 1 Stars
  • 49 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 162 Forks
  • 0 Open issues
  • 17 Versions
  • 0 % Grown

The README.md

AdminThemeBundle

Admin Theme based on the AdminLTE Template for easy integration into symfony. This bundle integrates several commonly used javascripts and the awesome AdminLTE Template., (*1)

Installation

Installation using composer is really easy: this command will add "avanzu/admin-theme-bundle": "~1.3" to your composer.json and will download the bundle:, (*2)

php composer.phar require avanzu/admin-theme-bundle

Notice: if you prefer to stay with the AdminLTE theme v1.x, manually reference "avanzu/admin-theme-bundle": "~1.1" in composer.json "require" part and run php composer.phar update, (*3)

Enable the bundle in your kernel:, (*4)

    <?php
    // app/AppKernel.php

    public function registerBundles()
    {
        $bundles = array(
            // ...
            new udan\AdminLTEBundle\udanAdminLTEBundle(),
        );
    }

Install assets (preferably using symlink method but hardcopy works as well)..., (*5)

php app/console assets:install --symlink

... and fetch vendors:, (*6)

php app/console avanzu:admin:fetch-vendor

Symfony 2.8 notice

This bundle requires assetic, but it isn't shipped with symfony anymore since version 2.8. To install assetic, follow these steps:, (*7)

php composer.phar require symfony/assetic-bundle

Enable the bundle in your kernel:, (*8)

    <?php
    // app/AppKernel.php

    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Symfony\Bundle\AsseticBundle\AsseticBundle(),
        );
    }

Add the following lines at app/config/config_dev.yml:, (*9)

assetic:
    use_controller: false

Changing default values from templates

If you want to change any default value as for example admin_skin all you need to do is define the same at app/config/config.yml under [twig] section. See example below:, (*10)

# Twig Configuration
twig:
    debug:            "%kernel.debug%"
    strict_variables: "%kernel.debug%"
    globals:
        admin_skin: skin-blue

You could also define those values at app/config/parameters.yml:, (*11)

admin_skin: skin-blue

and then use as follow in app/config/config.yml:, (*12)

# Twig Configuration
twig:
    debug:            "%kernel.debug%"
    strict_variables: "%kernel.debug%"
    globals:
        admin_skin: "%admin_skin%"

AdminLTE skins are: skin-blue (default for this bundle), skin-blue-light, skin-yellow, skin-yellow-light, skin-green, skin-green-light, skin-purple, skin-purple-light, skin-red, skin-red-light, skin-black and skin-black-light. If you want to know more then go ahead and check docs for AdminLTE [here][1]., (*13)

There are a few values you could change for sure without need to touch anything at bundle, just take a look under Resources/views. That's all., (*14)

Upgrade notice

Version >= 1.3 comes with pre packaged asset files located under Resources/public/static/[prod|dev]. So, there is no longer a strict requirement for bower and/or assetic. The assetic groups hovever, are still there and should work as usual., (*15)

Next Steps

The Versions

14/04 2016

dev-master

9999999-dev

Admin Theme based on the AdminLTE Template for easy integration into symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

30/12 2015

dev-feature/2.0

dev-feature/2.0

Admin Theme based on the AdminLTE Template for easy integration into symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

30/12 2015

2.0.0-beta.1

2.0.0.0-beta1

Admin Theme based on the AdminLTE Template for easy integration into symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

30/12 2015

dev-develop

dev-develop

Admin Theme based on the AdminLTE Template for easy integration into symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

30/12 2015
14/12 2015
19/09 2015
29/08 2015
21/03 2015
06/03 2015
27/10 2014
27/09 2014
27/09 2014
01/09 2014

dev-feature/marionette

dev-feature/marionette

Admin Theme based on the AdminLTE Template for easy integration into symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

07/08 2014
07/08 2014
07/08 2014