how to build a perfect Yii architecture.