Ejemplo n.º 1
0
 /**
  * Standard delete (DELETE) action
  * @param int $id
  */
 public function actionDelete($id)
 {
     $this->resource->action = 'Delete';
     try {
         $this->table->get($id)->delete();
         $this->resource->id = $id;
     } catch (\Exception $ex) {
         $this->sendErrorResource($ex);
     }
     $this->sendResource(IResource::JSON);
 }