Exemplo n.º 1
0
 public function removerecordAction()
 {
     $this->_checkCanEdit();
     $dictionary = Request::post('dictionary', Filter::FILTER_CLEANED_STR, false);
     $id = Request::post('id', Filter::FILTER_CLEANED_STR, false);
     if ($dictionary === false || empty($dictionary) || $id === false) {
         Response::jsonError($this->_lang->get('WRONG_REQUEST'));
     }
     try {
         $this->_manager->removeRecord($dictionary, $id);
         $this->_router->runController('Backend_Compiler_Controller', 'lang');
         // Response::jsonSuccess();
     } catch (Exception $e) {
         Response::jsonError($e->getMessage());
     }
 }