protected function _getCompteForm($id, $type) { require_once APPLICATION_PATH_COMMONS . '/forms/Compte.php'; if (($type == 'admin' || $type == 'superadmin') && !empty($id)) { Zend_Registry::set('modeform', 'modif'); $form = new Form_Compte(); $form->setAction($this->_helper->url('form/?id=' . $id)); } else { if ($type == 'admin' || $type == 'superadmin') { Zend_Registry::set('modeform', 'ajout'); } else { Zend_Registry::set('modeform', 'modif'); } $form = new Form_Compte(); $form->setAction($this->_helper->url('form')); } return $form; }
protected function _getCompteForm() { require_once APPLICATION_PATH_COMMONS . '/forms/Compte.php'; Zend_Registry::set('modeform', 'inscription'); $form = new Form_Compte(); $form->setAction($this->_helper->url('inscriptionmembre')); return $form; }