dabl/view
Composer 安装命令:
composer require dabl/view
包简介
Simple PHP view renderer
README 文档
README
Dabl View
Simple class for rendering pure PHP views
Example
app.php:
use Dabl\View\View; View::addDirectory(__DIR__ . '/views'); $output = View::load( 'view', // view name array( 'my_param' => 'hello world' // param to be injecting into the view ), true // return output instead of sending output to browser ); echo $output;
views/view.php:
<div><?= $my_param ?></div>
output:
<div>hello world</div>
统计信息
- 总下载量: 343
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-04