Documentation

getLocal

string|boolean public static
\Bitrix\Main\Loader::getLocal(
 string $path,
 string $root = null
);

Static method checks for existing file in /local or /bitrix directories.

Parameters

ParameterDescriptionVersion
$pathFile path relative to /local/ or /bitrix/
$rootServer document root, by default: static::getDocumentRoot()

Example



© «Bitrix24», 2001-2022
Up