etailerrs/bs4grayscale

为 Yii 框架准备的 Bootstrap 4 模板

安装: 3

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 14

类型:yii2-extension


README

Yii 2 Bootstrap 4 模板是一个骨架 设计,非常适合快速创建小型项目。

目录结构

  src/             		    contains module code, Assets and Module class
  src/bs_temp/          	contains bs4 template code downloaded and unziped
  src/controllers/        	contains Module controller classes
  src/views/              	contains Demo view files for the Web application

安装

通过 Composer 安装

如果您没有 Composer,您可以按照 getcomposer.org 上的说明进行安装。

然后,您可以使用以下命令安装此模块

composer require etailerrs/bs4grayscale

现在,您应该可以通过以下 URL 访问应用程序,假设 basic 是 Web 根目录下的直接目录。

配置 Yii2

在您的 config/ 目录中,在 web.php 中添加新模块

...
# After gii configuration
$config['bootstrap'][] = 'bs4grayscale';

$config['modules']['bs4grayscale'] = [
	'class' => 'etailerrs\bs4grayscale\Module',
];

测试 BS4 Grayscale

https://?r=bs4grayscale

or

https:///bs4grayscale