- Get link
- X
- Other Apps
bug code dan screenshot /** * @Route ("/api", name="dafault_index") */ public function api (Request $request ) { $limit = $request -> get ( 'limit' , 10 ) ; $repository = $this -> getDoctrine ()-> getRepository (GuruUkkjRepository:: class ) ; $items = $repository -> findAll () ; return $this -> json ( [ 'page' => 'page_ahmad' , 'limit' => 1 , 'data' => $items ] ) ; // return new JsonResponse([ // 'action' => 'Api', // 'data' => 'ukkj', // 'tiem' => time() // ]); } } kode diatas bug harusnya harusnya $this -> getDoctrine ()-> getRepository (GuruUkkj:: class ) ; tanpa embel2 repository tampilan error di browser HTTP 500 Internal Server Error ...