trying to create CMS based on Yii framework