Answer the question
In order to leave comments, you need to log in
How to use Bitrix\Main\Diag\Debug::dumpToFile?
I am doing my work in local/php_interface/init.php and there is a handler there
AddEventHandler("main", "OnBeforeEventSend", "OnBeforeEventAddHandler");
function OnBeforeEventAddHandler(&$event, &$lid, &$arFields){
if ($event == "SALE_NEW_ORDER") {
Bitrix\Main\Diag\Debug::dumpToFile($arFields,"arFields","textarr.txt");
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question