Skip to content

Instantly share code, notes, and snippets.

@madcatgith
Created August 1, 2019 09:26
Show Gist options
  • Save madcatgith/6fdfd541e6f82500fe4aa06d2e8d67d3 to your computer and use it in GitHub Desktop.
Save madcatgith/6fdfd541e6f82500fe4aa06d2e8d67d3 to your computer and use it in GitHub Desktop.
[BITRIX] Проброс переменных в component epilog через кеш
global $APPLICATION;
$cp = $this->__component; // объект компонента
if (is_object($cp))
{
// проброс свойства ANY в $arResult["PROPERTY"] для вывода в component_epilog
$cp->arResult['PROPERTY'] = $arResult["PROPERTIES"]['ANY'];
$cp->SetResultCacheKeys(array('PROPERTY'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment