function getAll() { header('Content-type: application/json'); $clients = Client::GetAll(); echo json_encode($clients); }