public function infoAction() { $form = new Admin_Form_InformationForm(); $this->view->form = $form; if ($this->getRequest()->isPost()) { $formData = $this->getRequest()->getPost(); if ($form->isValid($formData)) { $session = Zend_Registry::get("defaultsession"); $firstData = $session->first; $formData += $firstData; unset($formData['submit']); try { $bookingModel = new Admin_Model_Booking(); $bookingId = $bookingModel->add($formData); $this->_helper->FlashMessenger->addMessage(array("success" => "Successfully Booking Completed")); $this->_helper->redirector('payment', "index", "default", array("id" => $bookingId)); } catch (Exception $e) { var_dump($e->getMessage()); $this->_helper->FlashMessenger->addMessage(array("error" => $e->getMessage())); } } } }