philipsharp/slim-view-plates
Composer 安装命令:
composer require philipsharp/slim-view-plates
包简介
Custom Slim Framework view for the Plates template system
关键字:
README 文档
README
This library provides a custom view for the Slim Framework to support the Plates template engine.
Usage
Add the provider to your composer.json file:
{
"require": {
"philipsharp/slim-view-plates": "5.*"
}
}
Enable it in your application
<?php $view = new \philipsharp\Slim\View\Plates(); $app = new \Slim\Slim(array( 'view' => $view ));
Configuration
Template File Extension
Set $view->fileExtension to the file extension used for all templates.
By default Plates expects the extension to be .php.
Templates Path
Set $view->templatesPath to the location of the templates.
By default Slim-View-Plates will use the Slim templates.path configuration value. This setting allows you to override that value for only the Plates templates.
Templates Folder
Add to the $view->templatesFolders array, where the key is the name of the
folder and the value is the path.
Advanced Usage
To access the Plates engine object for further customization, including loading
extensions, call $view->getInstance().
统计信息
- 总下载量: 139
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-02-21