yiistudio/yii2-smarty

The Smarty integration for the Yii framework

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Type:yii2-extension

2.0.0-beta 2014-08-07 06:37 UTC

This package is not auto-updated.

Last update: 2024-04-23 05:38:13 UTC


README

This extension provides a ViewRender that would allow you to use Smarty view template engine.

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

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yiistudio/yii2-smarty "*"

or add

"yiistudio/yii2-smarty": "*"

to the require section of your composer.json.