SiteRelativeToAbsolutePath
string CBXVirtualIo::SiteRelativeToAbsolutePath( string $relativePath, string $site = null );
The method converts specified site root path to absolute path. The path is converted to standard format. Non-static method.
Parameters
Parameter | Description |
---|---|
relativePath | Relative path |
site | Site domain |
Example
echo $io->SiteRelativeToAbsolutePath("/path1/index.php", "s1"); // returns :/Projects/site1/s1/path1/index.php
© «Bitrix24», 2001-2024