/** * Display the specified resource. * * @param int $id * @return Response */ public function show(Request $request, $id) { try { $dataProvider = new PrComments(); $objProvider = $dataProvider->getAllCommentForProvider($id, $request->input('page')); $this->_responseWS->setDataResponse(Response::HTTP_OK, $objProvider, array(), 'ok'); } catch (Exception $exc) { $this->_responseWS->setDataResponse(Response::HTTP_INTERNAL_SERVER_ERROR, array(), array(), ''); } $this->_responseWS->response(); }