$this->getRequest()->setParams(array($key => $value)) to set your data.
After that use the $this->_forward($action, $controller) method to pass the
request to another action and then retrieve your data using
$this->getRequest()->getUserParam($key);
This will work unless you need a real redirect. In that case you should
store your data in a session.
Hope it helps ;)
Giuliano
SeanZend wrote:
>
> Hi i'm new to the Zend framework, and I wanted to know if Zend has a
> feature such as http_post_fields()? Or something that serves the same
> purpose.
>
> I am trying to post data from one controller to another without submitting
> a form. Does anyone have an example code of how to accomplish this? That
> is if Zend supports this feature?
>
> Thanks
>
>
--
View this message in context: http://www.nabble.com/Zend-http_post_fields%28%29-tp19258609p19265238.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论