Zend Form SetAction Using Named Routes
问题 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 route I have created in my bootstrap. Usually when I want to use a route I do something like $this->url(array(), 'route-name'); in the view, or $this->_helper->url(array(), 'route-name'); in the controller. How do I call a route from within Zend_Form? edit: I have given up trying to load a route into zend_form. Perhaps in