views:

445

answers:

2

hi all, i want to set my action controller from within a hidden filed in my view script form and when my form submitted zend framework router diagnose the action. like this:

A: 

I suppose you have a HTML form. The easiest way would be to do a _forward() using the values you got from the form inside the the controller/action the form submits to.

jetru
A: 

In your controller

$action = $this->_getParam('action', 'default-action-name');

return $this->_forward($action); //assumes same controller and module
David Caunt