Code example with Yii framework