Created
January 27, 2017 08:31
-
-
Save webmstk/fccfad5258e86a2bf2978f2803ff2f84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php';?> | |
<? | |
\Bitrix\Main\Loader::includeModule('iblock'); | |
$ar = array(); | |
$arFilter = array( | |
'IBLOCK_ID' => IBLOCK_CAT_ID, | |
'ACTIVE' => 'Y' | |
); | |
$res = CIBlockElement::GetList(array('sort' => 'asc'), $arFilter, false, false, array('DETAIL_PICTURE')); | |
while($ob = $res->GetNext()) | |
{ | |
$ar[] = CFile::GetPath($ob['DETAIL_PICTURE']); | |
} | |
pre($ar); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment