yiiplus/yii2-fis-smarty

基于Yii2的前端工程构建工具Fis3Smarty扩展

安装次数: 488

依赖关系: 1

建议者: 0

安全: 0

星标: 1

关注者: 3

分支: 1

开放性问题: 0

类型:yii2-extension

2.0.0 2018-04-26 04:38 UTC

This package is not auto-updated.

Last update: 2024-09-19 11:54:41 UTC


README

此扩展提供了一个ViewRender,允许您在Smarty视图模板引擎中使用Yii框架2.0

有关许可证信息,请查看LICENSE文件。

文档位于docs/guide/README.md

Latest Stable Version Total Downloads Build Status

安装

安装此扩展的首选方法是通过composer

运行以下命令之一:

composer require "yiiplus/yii2-fis-smarty:^2.0.0"

"yiiplus/yii2-fis-smarty": "^2.0.0"

将以下内容添加到您的composer.json文件的要求部分。

注意,smarty composer包是通过子版本分发的,因此您可能需要安装子版本。

使用方法

要使用此扩展,只需将以下代码添加到您的应用程序配置中

return [
    //....
    'components' => [
        'view' => [
            'renderers' => [
                'tpl' => [
                    'class' => 'yiiplus\fis\smarty\ViewRenderer',
                    'configDirs' => ['@app/config/fis'],
                ],
            ],
        ],
    ],
];