V
V
Vyacheslav Shevchenko2018-05-15 13:47:32
1C-Bitrix
Vyacheslav Shevchenko, 2018-05-15 13:47:32

Why is the request parameter not available?

Hello. Why is the code below returning NULL. While the data is being sent ( screenshot )

Bitrix\Main\Application::getInstance()->getContext()->getRequest()->get("ajax_basket")

Moreover, the data is also sent by the Bitrix code:
BX.ajax({
  method: 'POST',
  dataType: 'json',
  url: self.basketUrl,
  data: self.basketParams,
  onsuccess: BX.proxy(this.basketResult, this)
});

POST is not transmitted at all.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Zakharov, 2018-05-15
@konratnox

why not getPost?
https://dev.1c-bitrix.ru/api_d7/bitrix/main/httpre...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question