2017 © Pedro Peláez
 

yii2-extension yii2-adminlte

AdminLTE Asset Bundle for Yii2 Framework

image

yidas/yii2-adminlte

AdminLTE Asset Bundle for Yii2 Framework

  • Thursday, May 10, 2018
  • by yidas
  • Repository
  • 2 Watchers
  • 4 Stars
  • 926 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 66 % Grown

The README.md

, (*1)

AdminLTE Extension for Yii 2


AdminLTE Asset Bundle for Yii2 Framework, (*2)

Latest Stable Version License Total Downloads Monthly Downloads, (*3)

This is the AdminLTE extension for Yii framework 2.0. It encapsulates AdminLTE distribution assets and thus makes using AdminLTE in Yii applications extremely easy., (*4)


DEMONSTRATION

, (*5)


INSTALLATION

The preferred install way is through Composer:, (*6)

composer require yidas/yii2-adminlte

Or you could also edit composer.json with adding package in require section then run composer update., (*7)

"yidas/yii2-adminlte": "~2.1.0"

CONFIGURATION

Register or depend Asset into your application:, (*8)

yidas\adminlte\AdminlteAsset

For eaxmple, to register AdminLTE assets in view :, (*9)

\yidas\adminlte\AdminlteAsset::register($this);

Or as dependency in your app asset bundle :, (*10)

namespace app\assets;
use yii\web\AssetBundle;
class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
        'css/site.css',
    ];
    public $js = [
    ];
    public $depends = [
        'yidas\adminlte\AdminlteAsset'
    ];
}

CUSTOMIZATION

Skin

Configurate asset in config file:, (*11)

'components' => [
    'assetManager' => [
        'bundles' => [
            'yidas\adminlte\AdminlteAsset' => [
                'skin' => 'skin-black',
            ],
        ],
    ],
],

USAGE

Version Control

Update dependent packages

composer update yidas/yii2-adminlte

Update newest AdminLTE version

composer update almasaeed2010/AdminLTE

Specify a AdminLTE version

composer require almasaeed2010/AdminLTE 2.4.0

PLUGINS

This package provides asset bundles of AdminLTE plugins:, (*12)

iCheck

Register or depend Asset into your application:, (*13)

yidas\yii2\adminlte\plugins\iCheckAsset

You could additionally register AdminLTE iCheck assets in view:, (*14)

\yidas\yii2\adminlte\plugins\iCheckAsset::register($this);

Skin

'components' => [
    'assetManager' => [
        'bundles' => [
            'yidas\yii2\adminlte\plugins\iCheckAsset' => [
                'skin' => 'flat/aero',
            ],
        ],
    ],
],

TEMPLATES

Once the extension is installed, you can have a preview by reconfiguring the path mappings of the view component in config:, (*15)

    'components' => [
        'view' => [
            'theme' => [
                'pathMap' => [
                   '@app/views' => '@vendor/yidas/yii2-adminlte/templates/example'
                ],
            ],
        ],
    ],

Support both Yii 2 Advanced Application Template or Basic Application Template., (*16)

Example Templates

There are several implemented examples of AdminLTE layout for startup., (*17)

'@app/views' => '@vendor/yidas/yii2-adminlte/templates/simple'
'@app/views' => '@vendor/yidas/yii2-adminlte/templates/simple_zh-TW'

The Versions

10/05 2018

dev-master

9999999-dev

AdminLTE Asset Bundle for Yii2 Framework

  Sources   Download

MIT

The Requires

 

yii asset adminlte asset bundle

10/05 2018

2.2.0

2.2.0.0

AdminLTE Asset Bundle for Yii2 Framework

  Sources   Download

MIT

The Requires

 

yii asset adminlte asset bundle

10/05 2018

2.1.2

2.1.2.0

AdminLTE Asset Bundle for Yii2 Framework

  Sources   Download

MIT

The Requires

 

yii asset adminlte asset bundle

08/05 2018

2.1.1

2.1.1.0

AdminLTE Asset Bundle for Yii2 Framework

  Sources   Download

MIT

The Requires

 

yii asset adminlte asset bundle

14/04 2018

2.1.0

2.1.0.0

AdminLTE Asset Bundle for Yii2 Framework

  Sources   Download

MIT

The Requires

 

yii asset adminlte asset bundle

17/10 2017

2.0.0

2.0.0.0

AdminLTE Asset Bundle for Yii2 Framework

  Sources   Download

MIT

The Requires

 

yii asset adminlte asset bundle