예제 #1
0
 /**
  * @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');
     }
 }
예제 #2
0
파일: Settings.php 프로젝트: knatorski/SMS
 function __unset($name)
 {
     parent::delete(array('key = ?' => $name));
     $this->_cache->remove(__CLASS__ . $name);
 }