/** * Delete the file attached */ public function deletefileAction() { $id = $this->getRequest()->getParam('id'); if (PurchaseInvoices::DeleteAttachment($id)) { $this->_helper->redirector('edit', 'purchases', 'admin', array('id' => $id, 'mex' => $this->translator->translate('The task requested has been executed successfully.'), 'status' => 'success')); } else { $this->_helper->redirector('edit', 'purchases', 'admin', array('id' => $id, 'mex' => $this->translator->translate('The file cannot be found.'), 'status' => 'danger')); } }