add config gh

master
LMR 2 years ago
parent 8aeabebfb5
commit 1d87b70c63

@ -1070,6 +1070,12 @@ $config['templates_gm'] = array(
'空白模板' => 'none',
);
//德语信息模板
$config['templates_gh'] = array(
'通用内容模板' => 'guide_info_detail',
'带导航' => 'guide_with_nav'
);
// CHT 信息模板
$config['templates_cht'] = array(
'通用内容模板' => 'guide_info_detail',

@ -306,6 +306,11 @@ class Information extends CI_Controller
$this->config->set_item('templates', $this->config->item('templates_i'));
}
//可选的展示模板
if (in_array($this->config->item('site_code'), array('gh_vac', 'gh_vc', 'gh_jp', 'gh_ru', 'gh_it'))) {
$this->config->set_item('templates', $this->config->item('templates_gh'));
}
if (in_array($this->config->item('site_code'), array('ah'))) {
$this->config->set_item('templates', $this->config->item('templates_ah'));
}
@ -1283,8 +1288,9 @@ class Information extends CI_Controller
}
}
public function test_get_feedback_by_city_name() {
public function test_get_feedback_by_city_name()
{
$feedback_list = $this->Feedback_model->get_feedback_by_city_name('Bangkok', 5);
var_dump($feedback_list);
}

Loading…
Cancel
Save