2012-05-04 55 views

回答

0

这取决于你的行动。 假设你的表单动作就像是'somecontroller/test'

Public function testAction(){ 
//codes 

//You must be redirecting like this 
$this->_redirect('/anothercontroller/fooaction?param=value'); 

//You can change that to 
$this->_redirect('/anothercontroller/fooaction/param/value'); 

} 

这样你可以得到价值在fooaction

$this->_request->getParam('param'); 
+0

谢谢你的答案,但它不是我所需要的。在提交表单我得到的网址与参数?标记。我想要的是zend like url:controller/action/param/value not controller/action?param = value – ZendMind