getConnection(); $controller = new ProjectController($db); header("Content-Type: application/json"); echo json_encode($controller->getAllProjects());