duanmeng3476
duanmeng3476
2014-07-25 10:56
浏览 22
已采纳

使用post http方法的Zend Framework转发请求

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'));
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • douji1999
    douji1999 2014-07-25 12:40
    已采纳

    Yes this is possible, Try using following:

    $this->_request->setPost(array('param_name' => $paramValue));
    $this->_forward('actionName', 'controller', 'module');
    
    点赞 评论

相关推荐