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?
Out of the box you can't you have to check both separately:
$this->getRequest()->getPost('foo'); // $_POST
$this->getRequest()->getQuery('foo'); // $_GET
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With