Bitrix Site Manager

CPostingTemplate::IsExists

CPostingTemplate::IsExists(
    string path = ""
);

The method IsExists checks whether the folder of the template physically exists.

Parameters

ParameterDescription
pathRelative path to the template folder.

Return Values

Returns true if the specified folder exists, or false otherwise.

Example



<?
if (!CPostingTemplate::IsExists("bitrix/php_interface/subscribe/templates/news"))
    echo "The specified template does not exist.";
?>