Recode of repo app using yii framework