moved smarty to yii.