Выполнение CIBlockSection::GetList в init.php
CIBlockSection::GetList через событие в функции выполняется
Если применяю без события
Код |
---|
if(CModule::IncludeModule("iblock") )
{
$arFilter = Array('IBLOCK_ID'=>1, 'ID'=>3, 'ACTIVE'=>'Y');
$arSelect = Array('ID', 'NAME', 'SECTION_PAGE_URL');
$db_list_th = CIBlockSection::GetList(Array(), $arFilter, true, $arSelect);
while($ar_result_th = $db_list_th->GetNext())
{
echo $ar_result['NAME'].' - наименование раздела.<br>';
}
}
|
то не выполняется
Цитата |
---|
Fatal error: Call to a member function GetGroups() on a non-object in /home/u18830/arbir.ru/www/bitrix/modules/iblock/classes/mysql/iblocksection.php on line 36 |
Вопрос: что сделать что бы CIBlockSection::GetList в init.php завелся?