iboxs/iboxs-view
最新稳定版本:1.0.1
Composer 安装命令:
composer require iboxs/iboxs-view
包简介
iboxsphp template driver
README 文档
README
iboxsPHP6.0 IBoxs-Template模板引擎驱动
安装
composer require iboxs/iboxs-view
用法示例
本扩展不能单独使用,依赖iboxsPHP6.0+
首先配置config目录下的template.php配置文件,然后可以按照下面的用法使用。
use iboxs\facade\View; // 模板变量赋值和渲染输出 View::assign(['name' => 'iboxs']) // 输出过滤 ->filter(function($content){ return str_replace('search', 'replace', $content); }) // 读取模板文件渲染输出 ->fetch('index'); // 或者使用助手函数 view('index', ['name' => 'iboxs']);
具体的模板引擎配置请参考iboxs-template库。
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2023-09-25