Hi @ all !
Yii::app()->getBasePath() gives me the path to the www/protected directory but is there a funtion that gives the www path only (like c:/wamp/www) ?
Hi @ all !
Yii::app()->getBasePath() gives me the path to the www/protected directory but is there a funtion that gives the www path only (like c:/wamp/www) ?
Yii::getPathOfAlias('webroot');
Ok thanks
you can use:
getcwd()
or yii’s:
Yii::app()->getBasePath(); // "protected" folder
or previous andy_s’s exapmle …