0

Using Zend Framework 1.7. Is possible to forward a request with POST method? Something like this:

$this->_forward('action','controller','module',array('method'=>'POST'));
user1066183
  • 2,444
  • 4
  • 28
  • 57
  • http://stackoverflow.com/questions/1309456/redirect-to-new-page-w-post-data-php-zend – ka_lin Jul 25 '14 at 10:57
  • 3
    a forward don't ``redirect`` the browser to a new location and lose all the ``post`` data, with a ``forward`` in zend you point internal the current request to new action – ins0 Jul 25 '14 at 11:03

1 Answers1

2

Yes this is possible, Try using following:

$this->_request->setPost(array('param_name' => $paramValue));
$this->_forward('actionName', 'controller', 'module');
Rupali
  • 1,068
  • 1
  • 12
  • 18