public function registrationAction() { $form = new Zetta_Form($this->_configFormRegistration); if ($this->getRequest()->isPost() && $this->getParam('registration') && $form->isValid($_POST)) { $arrayData = $this->_makeInsertRegistration($form); $this->_model->insert($arrayData); $this->renderScript('index/registrationComplete.phtml'); $this->_sendRegLetter(); } else { $saltElement = $form->getElement('salt'); $saltElement->setValue(Modules_Access_Model_Users::GenerateSalt()); $this->view->form = $form; } }