IsExists
bool CPostingTemplate::IsExists( string path = "" );
Method verifies if a template catalog is available. Static method.
Parameters
Parameter | Description | Available from version |
---|---|---|
path | Relative path to template catalog. |
Returned value
true, if template catalog exists, and false otherwise.
Example
<? if(!CPostingTemplate::IsExists("bitrix/php_interface/subscribe/templates/news")) echo "Indicated template doesn't exist."; ?>
© «Bitrix24», 2001-2024