yiisoft/yii2-smarty
最新稳定版本:2.0.11
Composer 安装命令:
composer require yiisoft/yii2-smarty
包简介
The Smarty integration for the Yii framework
关键字:
README 文档
README
Smarty Extension for Yii 2
This extension provides a ViewRender that would allow you to use Smarty view template engine
with Yii framework 2.0.
For license information check the LICENSE-file.
Documentation is at docs/guide/README.md.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yiisoft/yii2-smarty
or add
"yiisoft/yii2-smarty": "~2.0.0"
to the require section of your composer.json.
Note that the smarty composer package is distributed using subversion so you may need to install subversion.
Usage
To use this extension, simply add the following code in your application configuration:
return [ //.... 'components' => [ 'view' => [ 'renderers' => [ 'tpl' => [ 'class' => 'yii\smarty\ViewRenderer', //'cachePath' => '@runtime/Smarty/cache', ], ], ], ], ];
统计信息
- 总下载量: 363.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 80
- 点击次数: 1
- 依赖项目数: 17
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2013-10-02