예제 #1
0
 public function getGamesUserAction($id_user)
 {
     $this->view->disable();
     header("Content-type: application/json; charset=utf-8");
     header("Content-type: application/json; charset=utf-8");
     $games = Games::find($id_user, array("order" => "points"));
     echo json_encode($games->toArray());
 }
예제 #2
0
 public function showDeleteGameById($id)
 {
     $game = Games::find($id);
     $game->delete();
     //Game::destroy(1, 2, 3);
 }