I want to fetch posted data. But I am using no form. The data is postet by a jquery script with method post
and I would like to fetch it.
I know how to fet
Here is an other example:
$this->getRequest()->getPost()->toArray()
Actually, this might be more of what you're looking for.
$this->getRequest()->getRawBody();
https://framework.zend.com/manual/1.12/en/zend.controller.request.html
Here is my solution;)
$this->getRequest()->getPost('id', null);
Try this:
$request = $this->getRequest();
$request->getPost('field_name');