function testWeather($location,&$params) { $w = new googleWeather(); $w->enable_cache = $params->get("enable_cache",1); $w->cache_path = JPATH_CACHE; $ar_data = $w->get_weather_data($location); var_dump($ar_data); }