Smarty view renderer

That’s right. When i am ready to use smarty to be the template engine for YII,but i find there is so much problem like use Grid and any others . Anyone have a good ways to resolved this ?

I also struggled with beginWidget in smarty template until I found a working solution on a russian site.

You have to use the smarty assign function:




{assign var=form value=$this->beginWidget('CActiveForm', [

        'id'=>'login-form',

        'enableClientValidation'=>true,

        'clientOptions'=>[

            'validateOnSubmit'=>true

        ]

    ], true)}



also You should call endWidget the same way:




{assign var=form value=$this->endWidget()}