PHP code example of domatskiy / bitrix-ajax-response
1. Go to this page and download the library: Download domatskiy/bitrix-ajax-response library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
domatskiy / bitrix-ajax-response example snippets
new AjaxResponse(function(){
...
});
new AjaxResponse('class@method');
new AjaxResponse('class@method', true);
define("STOP_STATISTICS", true);
define('NO_AGENT_CHECK', true);
define("STATISTIC_SKIP_ACTIVITY_CHECK", true);
use Domatskiy\AjaxResponse;
# подключаем bitrix
# body
$result->setData($data);
return $result;
});
}