public static function imgPhysicalPathBuilder($mainFolderName, $subFolderName, $fileName_withExstension) { $relativeFilePath = FileSystemService::imgPhysicalPathBuilder($mainFolderName, $subFolderName, $fileName_withExstension); $appRootPath = Yii::getPathOfAlias('webroot') . '/'; // e.g. 'c:/htdocs/' $physicalPath = $appRootPath . $relativeFilePath; return $physicalPath; }