Bitrix Site Manager

CPostingTemplate::GetList

CPostingTemplate::GetList();

The method GetList returns a list of templates.

Parameters

No parameters.

Return Values

Returns an array of relative paths to subfolders of the folder $_SERVER["DOCUMENT_ROOT"]."/"."bitrix/php_interface/subscribe/templates".

Example



<?
//get template directories
$arTemplates = CPostingTemplate::GetList();
foreach($arTemplates as $template_dir):
?>
    <p><?echo $template_dir?></p>
<?
endforeach;
?>