yiizh/yii2-adminlte

There is no license information available for the latest version (1.0.2) of this package.

The AdminLTE extension for Yii2.

This package's canonical repository appears to be gone and the package has been frozen as a result.

Installs: 370

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 2

Open Issues: 0

Language:CSS

Type:yii2-extension

1.0.2 2016-06-03 07:22 UTC

This package is auto-updated.

Last update: 2024-12-26 15:27:47 UTC


README

Yii 2.0 AdminLTE 扩展。包含了 AdminLTE 开源版本的所有皮肤,可以更加灵活的使用 AdminLTE。

Requirements

所有使用 yii 2.0 的框架都可使用。

Installation

推荐使用 Composer 安装。

执行

php composer.phar require --prefer-dist yiizh/yii2-adminlte

或添加

"yii2-adminlte": "*"

到项目的 composer.json 文件.

Usage

在需要用到的视图文件(一般为布局文件 views/layouts/main.php)中,添加如下代码

use yiizh\adminlte\AdminLTEAsset;

AdminLTEAsset::register($this);

使用皮肤时添加如下代码,下面以 blue 皮肤为例:

use yiizh\adminlte\AdminLTEBlueAsset;

AdminLTEBlueAsset::register($this);