D
D
Dmitry2016-04-06 16:57:06
1C-Bitrix
Dmitry, 2016-04-06 16:57:06

Where is $arResult['ITEMS'] formed which is used in the catalog.section component template?

An empty $arResult['ITEMS'] comes to the catalog.section component template. In which file is this array formed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita, 2016-04-06
@koyard

this array is formed in the core of the component, which in turn is formed with a filter condition, if you receive an empty one, then you have incorrectly set the component settings.

M
Maz3by, 2020-09-23
@Maz3by

bitrix/components/bitrix/catalog.section/class.php
protected function processResultData()
bitrix/modules/iblock/lib/component/base.php
bitrix/modules/iblock/lib/component/elementlist.php
$this->arResult[ 'ITEMS'] = $this->elements;
proofreading in
bitrix/modules/iblock/lib/component/base.php
protected function initElementList()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question