You have a hyphen in the request param and an underscore in the arg passed
to forward - pw

On Jul 23, 2009 2:16 AM, "debussy007" <[email protected]> wrote:


Hello,

I was expecting that if I forward to another action, the parameters
specified in the forward() method would override params with same name of
the request, let me clarify with the simple example below:

function deleteModuleAction() {
       $moduleId = $this->_getParam('p-module'); // 2
       return $this->_forward('setup-module', NULL, NULL, array('p_module'
=> 1));
// set the param to 1
}

function setupModuleAction() {
       $module = $this->_getParam('p-module'); // 2
       $this->logger->debug($module); // print 2
}
--
View this message in context:
http://www.nabble.com/params-problem-tp24622110p24622110.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to