【发布时间】:2009-07-22 15:11:31
【问题描述】:
真的是一个简单的问题。 我在 Zend Php 框架中使用 _forward 函数。
$this->_forward('formview', null, null, array('test'=>'penu'));
所以我转发到带有参数 test = 'penu' 的同一控制器的 formview 操作
但是当我在我被转发到的操作中时如何获得这个值。
【问题讨论】:
标签: php zend-framework
真的是一个简单的问题。 我在 Zend Php 框架中使用 _forward 函数。
$this->_forward('formview', null, null, array('test'=>'penu'));
所以我转发到带有参数 test = 'penu' 的同一控制器的 formview 操作
但是当我在我被转发到的操作中时如何获得这个值。
【问题讨论】:
标签: php zend-framework
$test=$this->getRequest()->getParam('test');
【讨论】:
或者 $this->_getParam('test')
【讨论】: