Answer the question
In order to leave comments, you need to log in
How to get $arResult without including a template?
Hello.
Began to create a server API for the mobile application of the online store. The site has already implemented the output of the necessary data for products (price, offers, discounts), so I want, to save time, in response to a request, connect a component with the necessary settings and send a ready-made $arResult data array without connecting a template. I tried to write in "result_modifer":
"$APPLICATION->RestartBuffer();
return $arResult;
die();"
But, the template is still connected.
What is the best way to solve this problem?
Answer the question
In order to leave comments, you need to log in
it's better to write like this - https://github.com/ArtamonovDenis/artamonov.api/wiki
specifically your question is that in the component file (compnent.php) return $arResult, that is, instead of
writereturn $arResult
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question