adding code sample for yii framework