public function view_modify() { $this->smarty->assign('title', '修改小语种国家'); $id = isset($_GET['id']) ? intval(trim($_GET['id'])) : 0; if (empty($id) || !is_numeric($id)) { redirect_to("index.php?mod=countriesSmall&act=index"); exit; } $countriesSmall = new CountriesSmallAct(); $res = $countriesSmall->actModify($id); $countriesList = TransOpenApiModel::getCountriesStandard(); $this->smarty->assign('lists', $countriesList); //标准国家列表 $this->smarty->assign('small_name', $res['small_country']); $this->smarty->assign('en_name', $res['countryName']); $this->smarty->assign('code_name', $res['conversionType']); $this->smarty->assign('id', $res['id']); $this->smarty->display('countriesSmallModify.htm'); }