p3k/slim-savant
最新稳定版本:0.1.0
Composer 安装命令:
composer require p3k/slim-savant
包简介
Savant renderer for Slim
README 文档
README
Setup
In your public/index.php, add this line:
\Slim\Savant\init();
Render
In your controller, you can use the render helper function. The helper function
assumes your master layout is called views/layout.php.
In PHP 5.6, you can alias the render function:
use function \Slim\Savant\render; render('index');
Below 5.6, you'll need to do the following:
use \Slim\Savant; Savant\render('index');
Partials
Savant\partial('foo');
统计信息
- 总下载量: 30
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache
- 更新时间: 2015-07-21