/** * 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); }