getParam('city');
$future_weather = [];
include $this->pathToModule.'includes/WorldweatheronlineApi.php';
$api = new WorldweatheronlineApi($ville);
if ($api->isFound()) {
$forecast = $api->getForecast();
$current = $api->getCurrent();
echo '
';
echo '
getParam("y").';">
'.$ville.'
'.'Actuellement : ' . $current['temp_c'] . '°C - ' . $current['condition'].'
'.implode('
', array_map(function($f) {
return sprintf('%s : %s°C | %s°C - %s', $f['day_of_week'], $f['low'], $f['high'], $f['condition']);
}, $forecast)).'
';
}
}
}