eelou 发表于 2014-6-25 11:13:52

请问一下谁 知道如何再添加一个自定义

RT

我想再添加一个首页用于绑定其它域名调用不同的内容

现在首页是    www.xxx.com/index.phpindex.html    调用的模板是template/default/index.htm


我想实现成这样www.xxx.com/index2.phpindex2.html    调用的模板是template/default/index2.htm

现在页面内容是调出来了但是不能生成静态文件```是不是还有地方要改啊!
index2.php[*]      if($DT['index2_html']) {
[*]                $html_file = $CFG['com_dir'] ? DT_ROOT.'/'.$DT['index2'].'.'.$DT['file_ext'] : DT_CACHE.'/index2.inc.html';
[*]                if(!is_file($html_file)) tohtml('index2');               
[*]                if(is_file($html_file)) exit(include($html_file));
[*]      }
[*]      $AREA or $AREA = cache_read('area.php');
[*]      if($EXT['wap_enable']) $head_mobile = $EXT['wap_url'];
[*]      $seo_title = $DT['seo_title'];
[*]      $head_keywords = $DT['seo_keywords'];
[*]      $head_description = $DT['seo_description'];
[*]      if($city_template) {
[*]                include template($city_template, 'city');
[*]      } else {               
[*]                include template('index2');
[*]      }
[*]}复制代码
页: [1]
查看完整版本: 请问一下谁 知道如何再添加一个自定义