public function changeCountryAction() { $request = new Request(); $model = new WeatherModel(); $country_list = $model->getXmlYandexCities(); $data = Weather::changeCountries($request->post('country_name'), $country_list['cities_source']); return $data; }