bobonov / yii2-adminlte3-asset

AdminLte3 assets for Yii2 Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AdminLTE 3 asset for Yii2 Framework

This package provide the necessary assets for the AdminLTE3 theme.

For theme info refer to documentation.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist bobonov/yii2-adminlte-assets "~1.0.0"

or add

"bobono/yii2-adminlte-asset": "~1.0.0"

to the require section of your composer.json file.

Usage

Just register AssetBundle in top of your layout

$this->registerAssetBundle(AdminLte3Asset::class);

In the package folder there is the layouts_template directory, only one layout is provided at the moment. Copy it to you view and personalize as needed.

There are 2 assets loaded in the template:

  • AdminLte3Assets: these are the basic required assets to load the template
  • FontAwesomeAsset: the template use FontAwesome which is included directly in AdminLte3 source. Since FontAwesome for Yii2 is already avail by other packages, I suggest to use one of them since they provide a more updated version. In the template this asset is enable in order to load the theme correctly. Once you start using another package you can disable this asset.

See Layout Example

This package is release under BSD-3-Clause, read the lincense

About

AdminLte3 assets for Yii2 Framework

License:Other


Languages

Language:PHP 98.5%Language:Hack 1.5%