/** * @return void */ public function deleteAction() { $request = $this->getRequest(); $id = $this->_helper->IdConvert->hexToStr($request->getParam('id')); try { $this->_model->delete($id); $this->_helper->messenger->success(); $this->_helper->redirector('index'); return; } catch (Zend_Db_Exception $e) { $this->_helper->messenger->error($e->getMessage()); $this->_helper->redirector('index'); } }
function __unset($name) { parent::delete(array('key = ?' => $name)); $this->_cache->remove(__CLASS__ . $name); }