public function sendquoteAction()
 {
     $pageSession = new Zend_Session_Namespace('landlords_insurance_quote');
     $quoteID = $pageSession->quoteID;
     $quoteManager = new Manager_Insurance_LandlordsPlus_Quote($quoteID);
     $postdata = $this->getRequest()->getPost();
     if (isset($postdata)) {
         // Find out how the customer wants their quote
         $sendBy = $postdata['how_send'];
         $request = $this->getRequest();
         $quoteManager->sendQuote($quoteManager->getPolicyNumber(), $sendBy);
     }
 }
 /**
  * Helper function for common work executed in each form step
  * Allows navigation between steps
  *
  * @param int $stepNum current step number
  *
  * @return void
  */
 private function _formStepCommonNavigate($stepNum)
 {
     $pageSession = new Zend_Session_Namespace('landlords_insurance_quote');
     $request = $this->getRequest();
     if ($request->isPost()) {
         // Handle moving backwards and forwards through the form
         $response = $this->getResponse();
         if ($stepNum == 'dd') {
             $quoteManager = new Manager_Insurance_LandlordsPlus_Quote($this->_quoteID);
             $quoteNumber = $quoteManager->getPolicyNumber();
             $policyNumber = str_replace('Q', 'P', $quoteNumber);
             if (isset($_POST['next'])) {
                 $this->_helper->redirector->gotoUrl('/landlords/insurance-quote/ddconfirmation?pn=' . $policyNumber);
             }
             if (isset($_POST['back'])) {
                 $this->_helper->redirector->gotoUrl('/landlords/insurance-quote/step' . $this->_stepMax);
             }
             $response->sendResponse();
         } elseif ($stepNum == 'cc') {
             if (isset($_POST['next'])) {
                 $this->_helper->redirector->gotoUrl('/landlords/insurance-quote/ccconfirmation');
             }
             if (isset($_POST['back'])) {
                 $this->_helper->redirector->gotoUrl('/landlords/insurance-quote/step' . $this->_stepMax);
             }
             $response->sendResponse();
         } else {
             if (isset($_POST['back']) && $stepNum > 1) {
                 $this->_helper->redirector->gotoUrl('/landlords/insurance-quote/step' . ($stepNum - 1));
             } elseif (isset($_POST['next']) && $stepNum < $this->_stepMax && $pageSession->completed[$stepNum]) {
                 $this->_helper->redirector->gotoUrl('/landlords/insurance-quote/step' . ($stepNum + 1));
                 // Handle payment screen traversal
             } elseif (isset($_POST['next']) && isset($_POST['payment_method']) && $_POST['payment_method'] == 'cc' && $stepNum == $this->_stepMax) {
                 $this->_helper->redirector->gotoUrl('/landlords/insurance-quote/cc');
             } elseif (isset($_POST['next']) && isset($_POST['payment_method']) && $_POST['payment_method'] == 'dd' && $stepNum == $this->_stepMax) {
                 $this->_helper->redirector->gotoUrl('/landlords/insurance-quote/dd');
             }
         }
     }
 }