In the Zend view helper, there is the function url() for outputting a URL based on the routing tables eg
$this->url(array('controller' => 'comments', 'action' => 'add')
How can I do the same thing in a controller? In particular I want to set the action URL for a Zend Form using controller/action syntax rather than a standard URL eg
$form = new Zend_Form;
$form->setMethod('post')->setAction( $this->url(array('controller' => 'comments', 'action' => 'add')) );
$this->_helper->url(array('controller' => 'index', 'action' => 'download'))
outside the IndexController (here AjaxController) it returns '/ajax/Array' what did I do wrong? Or is it a bug? – Incompletion