Adminlte Background Administration framework resource file for yiiframe
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.
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
];
}