put yii path into a function