public function registerAction() { $this->view->form = new App_Form_Login_Register(); if ($this->getRequest()->isPost()) { if ($this->view->form->isValid($this->getRequest()->getPost())) { if (App_Model_User::addUser($this->view->form->getValue('nome'), $this->view->form->getValue('cognome'), $this->view->form->getValue('nascita'), $this->view->form->getValue('email'), $this->view->form->getValue('password'))) { $this->_helper->redirector('registerOk'); } else { $this->_helper->redirector('registerKo'); } } else { $this->_helper->redirector('registerKo'); } } }