V
V
Vadim Timoshenko2020-01-27 22:12:33
1C-Bitrix
Vadim Timoshenko, 2020-01-27 22:12:33

How to display $arrVALUES on the screen?

There is a function in init.php:

function onBeforeResultAddHandler($WEB_FORM_ID, &$arFields, &$arrVALUES) {
...
}


It works with the $arrVALUES array. I want to see what this array is filled with. How can I do this, given that the function is called before the web form data is written. And the page is refreshed by ajax?

I tried:

print_r($arrVALUES);
return;


But of course it doesn't work =)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael Lyamin, 2020-02-20
@BusteR27

Throw an exception

$APPLICATION->ThrowException('<pre>' . print_r($arrVALUES, true) . '</pre>');

Well, or pledge data to a file\storage :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question