Smarty 3
Yii 1.x
Php >= 5.2
webroot/src/protected/vendors/Smarty/...
2.- Clone the repository in your vendor directory. In my current proyect create a vendors
directory in webroot/src/protected/vendors
webroot/src/protected/vendors/YiiSmartyViewRenderer/...
Reference: Yii 1.x Alternative Template Syntax
'components' => array(
'viewRenderer'=>array(
'class'=>'application.vendors.YiiSmartyViewRenderer.YiiSmartyViewRenderer',
),
...
)
<?php
{$prop}
{Yii::app()->user->id}
<!--views/create.php-->
<div class="panel-body">
<?php $this->renderPartial('partials/test', compact('prop'));?>
</div>
Yii 1.x work with php 5 and Smarty 3 work from php 5.2 to 7, so, for this reason, smarty is a good option for yii 1.x.
I hoppe this work for you. :)