예제 #1
0
 /**
  * Deletes
  *
  * @param string $id
  */
 public function deleteAction($id)
 {
     $this->view->disable();
     $status = "NG";
     $categorie = Words::findFirstByid($id);
     if ($categorie->delete()) {
         $status = "OK";
     }
     echo json_encode(array("status" => $status));
 }