siezi / phile-serve-content-files
PhileCMS 的插件,用于从 content/ 目录中提供文件
0.2.0
2019-05-28 06:12 UTC
Requires
- phile-cms/phile: ^1.11
- phile-cms/plugin-installer-plugin: ^1.0 || dev-develop
Requires (Dev)
- phpunit/phpunit: ^7.0
Suggests
- siezi/phile-total-cache: caching for improved performance
This package is auto-updated.
Last update: 2024-08-29 03:21:01 UTC
README
此插件尝试一些魔法™ 直接从 content/
目录提供额外的文件
- 更改 HTML 输出并在 URL 中插入
content/
如果它缺失 - 从
content/
目录中提供不包含content/
的 URL 的请求
注意:此插件以一些性能(可能通过 PHP 提供文件)为代价,以方便(无需与服务器或内容文件纠缠)。
1.1 安装(composer)
"require": { "siezi/phile-serve-content-files": "*" }
1.2 安装(手动下载)
- 安装 Phile
- 将此插件复制到
plugins/siezi/phileServeContentFiles
2. 激活
在您安装插件后,您需要激活它。将以下行添加到 Phile 的根 config.php
文件中
$config['plugins']['siezi\\phileServeContentFiles'] = ['active' => true];
3. 配置
参见插件 config.php
文件。