1. Go to this page and download the library: Download hjp1011/yii2-adminlte library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hjp1011 / yii2-adminlte example snippets
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
];
}
php composer.phar
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.