hasIdentity()) { // TODO: quick hack fixxen $this->_redirect('/Auth/login'); } } public function indexAction() { echo 'case2'; // action body } public function registerAction() { $db = Zend_Db_Table::getDefaultAdapter(); if (!isset($_POST["register"])){ $registerForm = new Application_Form_PersonRegister(); } else { $registerForm = new Application_Form_PersonRegister($_POST); if ($registerForm->isValid($_POST)) { $person = new Application_Model_Person($_POST); var if ($person != null) { echo "Erfolgreich registriert"; var_dump($person); var //$this->_redirect('/auth/login'); return; } else { echo "Die angegebene Email-Adresse existiert bereits"; } } } $this->view->registerForm = $registerForm; } }