Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get post data, Zend Framework

Tags:

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 fetch parameters

$id = $this->getRequest ()->getParam ( 'id', null );

and form values

$message = $form->getValue ( 'message' );

however I want to access post data and not parameters or form values. Any ideas?

like image 335
UpCat Avatar asked Sep 19 '10 13:09

UpCat


1 Answers

Here is my solution;)

$this->getRequest()->getPost('id', null);
like image 83
UpCat Avatar answered Oct 21 '22 20:10

UpCat