public function ChangeCountryAction() { $request = Project::getRequest(); $country_id = $request->getKeyByNumber(0); if ($country_id) { $info = array(); $state_model = new StateModel(); $info['state_list'] = $state_model->loadByCountry($country_id); $info['change_state_param'] = AjaxRequest::getJsonParam("Social", "ChangeStates", array('#id#')); $this->_view->ChangeCountry($info); $this->_view->ajax(); } else { $response = Project::getAjaxResponse(); $response->block('state_div', true, ''); $response->block('city_div', true, ''); $this->_view->ajax(); } }
function ChangeCountryAction() { $request = Project::getRequest(); $country_id = $request->getKeyByNumber(0); $info = array(); $state_model = new StateModel(); $info['state_list'] = $state_model->loadByCountry($country_id); $info['change_state_param'] = AjaxRequest::getJsonParam("User", "ChangeState", array('#id#')); $this->_view->ChangeCountry($info); $this->_view->ajax(); }