StartResultCache(60*60*24, md5(var_export($_POST, true)))) { if(CModule::IncludeModule('iblock')) { $arResult = []; $sort = Array("SORT" => "ASC", "NAME" => "ASC"); $filter = Array("ACTIVE" => "Y", "IBLOCK_ID" => 15); $options = false; $res = CIBlockElement::GetList($sort, $filter, false, $options); $arResult = ['REGIONS' => []]; while ($obElement = $res->GetNextElement()) { $ar_res = $obElement->GetFields(); $ar_res['PROPERTIES'] = $obElement->GetProperties(); $arResult['REGIONS'][] = $ar_res; } $this->IncludeComponentTemplate(); } }