Refactoring - use getters directly Yii::app()->getName() instead Yii::app()->name