johnsnook/yii2-sbadmin

为Yii2开发的Bootstrap 4管理模板主题

安装次数: 93

依赖者: 0

建议者: 0

安全: 0

星标: 1

关注者: 2

分支: 0

开放问题: 0

语言:HTML

类型:yii2-extension

v1.0.2 2018-04-10 15:50 UTC

This package is not auto-updated.

Last update: 2024-09-24 04:25:18 UTC


README

为Yii2开发的Bootstrap 4管理模板主题。为Yii2高级安装开发,但应与基本安装兼容。

安装

安装此扩展的首选方式是通过 Composer

运行以下命令之一:

php composer.phar require --prefer-dist johnsnook/yii2-sbadmin "~1.0.0"

或者

"johnsnook/yii2-sbadmin": "~1.0.0"

将以下内容添加到您的 composer.json 文件的require部分。

应将最小稳定性从 'stable' 更改为 dev

    "minimum-stability": "dev",

由于我们正在使用Bootstrap 4,因此将yii2-bootstrap行更改为

    "yiisoft/yii2-bootstrap": "~2.1.0"
​````

Usage
-----

The layout files should be copied from @vendor/johnsnook/sbadmin/example-layouts to backend/views/layouts where you can modify them to your hearts content.  navigation.php will probably be your main focus.

Obviously in progress, I started work on 4/3/2018.

To enable the example pages add this to your config/main.php at the top level

'controllerMap' => [ 'sbadmin' => 'johnsnook\sbadmin\controllers\SbAdminController', ],

. . . . . . . . . . .