public function step2Action() { $namespace = new Zend_Session_Namespace('signup'); if (!is_null($namespace->sitename) && !is_null($namespace->siteurl)) { $userform = new Form_User(); $userform->addRepeatPassword(); $userform->setAction('/registration/step2'); $userform->addDBNoRecordExistsValidator(); if ($this->_request->isPost()) { if ($userform->isValid($this->_request->getPost())) { $namespace->email = $userform->getValue('email'); $namespace->password = $userform->getValue('password'); $this->_redirect('/registration/step3'); } } $this->view->userform = $userform->replaceSubmitLabel("Step 3 >"); $this->view->sitename = $namespace->sitename; $this->view->siteurl = $namespace->siteurl; } else { $this->_redirect('/auth'); } }