Exemplo n.º 1
0
 public function searchCities()
 {
     $search = $_REQUEST['search'];
     $country_id = intval($_REQUEST['country_id']);
     if (empty($search)) {
         return array();
     }
     $weather = new Weather();
     return $weather->getCities($country_id, $search);
 }