diff options
| author | Simon | 2011-01-31 15:34:21 +0100 |
|---|---|---|
| committer | Simon | 2011-01-31 15:34:21 +0100 |
| commit | 6c07eb5e85f9705c83b0415a89dd05a19b138bce (patch) | |
| tree | 38c414878306cb3ba3bd2ebe5093473ecaabd4fb /application/controllers/PersonController.php | |
| parent | Person Register Form (diff) | |
| download | pbs2-6c07eb5e85f9705c83b0415a89dd05a19b138bce.tar.gz pbs2-6c07eb5e85f9705c83b0415a89dd05a19b138bce.tar.xz pbs2-6c07eb5e85f9705c83b0415a89dd05a19b138bce.zip | |
auth controller vervollstÃĪndigt
Diffstat (limited to 'application/controllers/PersonController.php')
| -rw-r--r-- | application/controllers/PersonController.php | 28 |
1 files changed, 1 insertions, 27 deletions
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; - - } + } |
