Beispiel #1
0
 /**
  * Delete the cart session
  */
 public function deletesessionAction()
 {
     $this->session = new Zend_Session_Namespace('Default');
     if (is_numeric($cart->contacts['customer_id'])) {
         Customers::del($cart->contacts['customer_id']);
     }
     unset($cart);
     $this->_helper->redirector('out', 'index', 'default');
 }
Beispiel #2
0
 /**
  * deleteAction
  * Delete a record previously selected by the customer
  * @return unknown_type
  */
 public function deleteAction()
 {
     $files = new Files();
     $id = $this->getRequest()->getParam('id');
     try {
         if (is_numeric($id)) {
             Customers::del($id);
         }
     } catch (Exception $e) {
         $this->_helper->redirector('edit', 'customers', 'admin', array('id' => $id, 'mex' => $this->translator->translate('Unable to process the request at this time.') . ": " . $e->getMessage(), 'status' => 'danger'));
     }
     $this->_helper->redirector('list', 'customers', 'admin', array('mex' => $this->translator->translate('The task requested has been executed successfully.'), 'status' => 'success'));
 }