I have a form that I am trying to set the action for. I want to declare the action inside my form file (which extends Zend_Form) instead of in a controller or view, using a
I do not know when it was added, but there is an even simpler solution.
You can retrieve the form's view object with getView(), which has access to the registered routes.
//In the form $this->setAction($this->getView()->url(array('param1' => 'value1'), 'routeName'));