Documentation

RelativeToAbsolutePath

result_type
CBXVirtualIo::RelativeToAbsolutePath(
 array string $relativePath
);

The method converts product root path relative to absolute path. The path is converted to standard format. Non-static method.

Parameters

Parameter Description
$relativePath Relative path

Example

echo $io->RelativeToAbsolutePath("/path1/index.php");  // returns :/Projects/site1/path1/index.php 


© «Bitrix24», 2001-2024