Try this.
$content = json_decode($this->getRequest()->getContent());
print_r($content);
Question
I need to access the parameters sent by my ExtJs code in my Zend controller. I tried the following:
getQuery
, getParams
, but no luck.The method is GET, I found it using getMethod()
.
This is what I get in my Request object.
[content:protected] => {"method":"getActivities","params":{"controller":"reader","page":1,"skip":0,"limit":50},"jsonrpc":"2.0","id":4}
)
Is there a way to solve this? I'm really stuck.
Solution
Try this.
$content = json_decode($this->getRequest()->getContent());
print_r($content);