Sunday, September 9, 2012

Getting the 'protected' Directory's Parent in Yii

I needed the directory just above "protected." Here's how you do it:


Yii::getPathOfAlias('webroot')

No comments:

Post a Comment