How to retrieve Request Payload

后端 未结 2 1692
梦如初夏
梦如初夏 2020-11-27 10:04

I\'m using PHP, ExtJS and ajax store.

It sends data (on create, update, destroy) not in POST or GET. In the

2条回答
  •  庸人自扰
    2020-11-27 11:07

    Also you can setup extJs writer with encode: true and it will send data regularly (and, hence, you will be able to retrieve data via $_POST and $_GET).

    ... the values will be sent as part of the request parameters as opposed to a raw post (via docs for encode config of Ext.data.writer.Json)

    UPDATE

    Also docs say that:

    The encode option should only be set to true when a root is defined

    So, probably, writer's root config is required.

提交回复
热议问题