Sample code added to Yii