yii2 smarty php,GitHub - yiiplus/yii2-fis-smarty: 基于Yii2的前端工程构建工具Fis3Smarty扩展...

Fis3 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.

68747470733a2f2f706f7365722e707567782e6f72672f796969706c75732f796969322d6669732d736d617274792f762f737461626c652e706e67

68747470733a2f2f706f7365722e707567782e6f72672f796969706c75732f796969322d6669732d736d617274792f646f776e6c6f6164732e706e67

68747470733a2f2f7472617669732d63692e6f72672f796969706c75732f796969322d6669732d736d617274792e7376673f6272616e63683d6d6173746572

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'],

],

],

],

],

];

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值