/** * deleteAction * Delete a record previously selected by the order * @return unknown_type */ public function deleteAction() { $files = new Files(); $id = $this->getRequest()->getParam('id'); try { PurchaseInvoices::DeleteByID($id); } catch (Exception $e) { die($e->getMessage() . " " . $e->getTraceAsString()); } return $this->_helper->redirector('index', 'purchases'); }