ZF2 Get value of both POST and GET

zend-framework2

Solution

Out of the box you can't you have to check both separately:

$this->getRequest()->getPost('foo'); // $_POST
$this->getRequest()->getQuery('foo'); // $_GET

Problem

In ZF1, I could do following to get both $_POST and $_GET value. ``` $this->getRequest()->getParam('foo'); ``` Is there any method similar to this in ZF2?

Original source