yiiplus/yii2-fis-smarty
Composer 安装命令:
composer require yiiplus/yii2-fis-smarty
包简介
基于Yii2的前端工程构建工具Fis3Smarty扩展
README 文档
README
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
composer require "yiiplus/yii2-fis-smarty:^2.0.0"
or add
"yiiplus/yii2-fis-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' => 'yiiplus\fis\smarty\ViewRenderer', 'configDirs' => ['@app/config/fis'], ], ], ], ], ];
统计信息
- 总下载量: 488
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-04-24