From Crisu83/yii-app