hjp1011/yii2-adminlte

Adminlte Background Administration framework resource file for yiiframe

Installs: 41

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

1.0.0 2024-02-17 05:34 UTC

This package is not auto-updated.

Last update: 2024-05-12 05:00:55 UTC


README

Adminlte Background Administration framework resource file for yiiframe

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist hjp1011/yii2-adminlte "*"

or add

"hjp1011/yii2-adminlte": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

use yiiframe\adminlte\AdminLetAsset;
class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web/resources';

    public $css = [
        'plugins/toastr/toastr.min.css', // 状态通知
        'plugins/fancybox/jquery.fancybox.min.css', // 图片查看
        'plugins/cropper/cropper.min.css',
        'css/yiiframe.css',
        'css/yiiframe.widgets.css',
    ];

    public $js = [
        'plugins/layer/layer.js',
        'plugins/sweetalert/sweetalert.min.js',
        'plugins/fancybox/jquery.fancybox.min.js',
        'js/template.js',
        'js/yiiframe.js',
        'js/yiiframe.widgets.js',
    ];

    public $depends = [
        YiiAsset::class,
        AdminLetAsset::class,
        HeadJsAsset::class
    ];
}