yiistudio / yii2-smarty
The Smarty integration for the Yii framework
Package info
github.com/yiistudio/yii2-smarty
Type:yii2-extension
pkg:composer/yiistudio/yii2-smarty
2.0.0-beta
2014-08-07 06:37 UTC
Requires
This package is not auto-updated.
Last update: 2026-03-10 14:46:59 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.