Skip to content

Instantly share code, notes, and snippets.

@Feiron
Created April 2, 2021 14:00
Show Gist options
  • Save Feiron/5db2ea91068430fe08ba8aaa3a74f162 to your computer and use it in GitHub Desktop.
Save Feiron/5db2ea91068430fe08ba8aaa3a74f162 to your computer and use it in GitHub Desktop.
[Bitrix HXR] #bitrix #ajax
<?php
define('STOP_STATISTICS', true);
define('BX_SECURITY_SHOW_MESSAGE', true);
define("NO_KEEP_STATISTIC", true);
define("NO_AGENT_STATISTIC", true);
define("NOT_CHECK_PERMISSIONS", true);
require_once($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php');
use Bitrix\Main\Application;
use Bitrix\Main\Localization\Loc;
$obRequest = Application::getInstance()->getContext()->getRequest();
$obResponse = new \Bitrix\Main\HttpResponse();
$obResponse->addHeader("Content-Type", "application/json");
$obResponse->flush(
$CrmReportManagersComponent->getResponseData(ob_get_clean())
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment