/** * deleteAction * Delete a record previously selected by the customer * @return unknown_type */ public function deleteAction() { $id = $this->getRequest()->getParam('id'); $controller = Zend_Controller_Front::getInstance()->getRequest()->getControllerName(); if (!empty($id) && is_numeric($id)) { if (ProductsAttributes::deleteAttribute($id)) { $this->_helper->redirector('list', $controller, 'admin', array('mex' => $this->translator->translate('Attribute deleted'), 'status' => 'information')); } } $this->_helper->redirector('list', $controller, 'admin', array('mex' => $this->translator->translate('Unable to process the request at this time.'), 'status' => 'danger')); }