some modified base on yii-app which suitable for my own need