devzyj / yii2-adminlte
AdminLTE for Yii2.
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- almasaeed2010/adminlte: ~2.4
- rmrevin/yii2-fontawesome: ~2.17
- yiisoft/yii2: *
- yiisoft/yii2-bootstrap: ~2.0.0
This package is auto-updated.
Last update: 2024-11-21 20:43:40 UTC
README
almasaeed2010/AdminLTE for Yii2.
兼容性
安装方式
通过 composer.
"devzyj/yii2-adminlte" : "~1.0.0"
使用方法
安装完成后,如果需要预览效果,可以进行如下配置:
// config.php return [ 'components' => [ 'view' => [ 'theme' => [ 'pathMap' => [ '@app/views' => '@devzyj/yii2/adminlte/views', ], ], ], ], ];
皮肤和布局
// config.php return [ 'components' => [ 'assetManager' => [ 'bundles' => [ 'devzyj\yii2\adminlte\web\AdminLteAsset' => [ 'skin' => 'skin-blue', 'layout' => 'sidebar-mini', ], ], ], ], ];
资源包
// AppAsset.php class AppAsset extends \yii\web\AssetBundle { public $css = [ // 字体样式 'https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic', ]; public $depends = [ 'devzyj\yii2\adminlte\web\AdminLteAsset', ]; }
视图文件
- 拷贝
devzyj\yii2\adminlte\views\
中的内容到app\views\
中。 - 修改
layouts
目录中的文件。把注册页面资源的代码换成AppAsset::register($this)
,并且调整嵌套布局使用的文件路径。