Пример #1
0
 public function cancelAction()
 {
     $this->_helper->viewRenderer->setNoRender();
     $this->_helper->getHelper('layout')->disableLayout();
     if ($this->getRequest()->isPost()) {
         $id = $this->_getParam('id', 0);
         $quote = new Sales_Model_DbTable_Quote();
         $quote->setState($id, 106, $this->_date, $this->_user['id']);
     }
     $this->_flashMessenger->addMessage('MESSAGES_SUCCESFULLY_CANCELLED');
 }