beberlei / zf-doctrine

A Zend Framework 1.x and Doctrine 1.2 Integration - UNMAINTAINED
101 stars 21 forks source link

ZFDoctrine_Controller_Helper_ModelForm don't have options to routes #13

Open reinaldorock opened 14 years ago

reinaldorock commented 14 years ago

public function handleForm(ZFDoctrine_Form_Model $form, $action, $controller = null, $module = null, array $params = array()) /* should use urlOptions as in Zend_View_Helper_url or $this->_helper->redirector->gotoRoute($urlOptions,$name,$reset,$encode);

calling method handleForm by: $this->_helper->modelForm->handleForm($model,array(),'banners_list',true)

However I belive that create a new method to manipulate routes will be a best choice: handleForm(ZFDoctrine_Form_Model $form, $action, $controller = null, $module = null, array $params = array()){ $this->handleFormWithRoute($form,array( 'controller' => $controller, 'action' => $action, 'module' => $module, 'params' =>$params ), 'default', true }

*/