2008年9月1日星期一

Re: [fw-mvc] Zend http_post_fields()

2008/9/1 SeanZend <programmatik@hotmail.com>:
> 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?

Consider building a Zend_Request object and using some methods of the
ActionStack helper in your controller. However, you could consider to
factor out the repeated code from the controller to your model, making
it more useful and testable.

--
Giorgio Sironi
Piccolo Principe & Ossigeno Scripter
http://www.sourceforge.net/projects/ossigeno

没有评论: