From 6c07eb5e85f9705c83b0415a89dd05a19b138bce Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 31 Jan 2011 15:34:21 +0100 Subject: auth controller vervollstÃĪndigt --- application/controllers/PersonController.php | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'application/controllers/PersonController.php') diff --git a/application/controllers/PersonController.php b/application/controllers/PersonController.php index 65a4cca..986117a 100644 --- a/application/controllers/PersonController.php +++ b/application/controllers/PersonController.php @@ -18,33 +18,7 @@ class PersonController extends Zend_Controller_Action // 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; - - } + } -- cgit v1.2.3-55-g7522