if(!file_exists($objfile)) {
      
include_once(S_ROOT.'./source/function_template.php');
      parse_template(
$tpl);
}

 


修改成:
//if(!file_exists($objfile)) {
      include_once(S_ROOT.'./source/function_template.php');
      parse_template(
$tpl);
//}

 


这样修改模板后就不用到后台更新缓存了


下面开始讲一下模板中常用的标签及变量输出。

一、变量:

如我们在PHP文件中定义了一个变量并赋值了,如:
$siteUrl='http://www.yiqi123.cn';
$siteName='找插件网';

 


那么如何在模板中输出呢?其实这个很简单:
站点地址:$siteUrl
站点名称:$siteName
就可以输出结果:
站点地址:
foreach($s as $key=>$value){
echo $value
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-26
  • 2021-11-20
  • 2022-12-23
  • 2021-09-06
  • 2021-04-15
  • 2022-12-23
猜你喜欢
  • 2021-10-02
  • 2021-12-17
  • 2021-08-19
  • 2021-09-27
  • 2021-04-24
  • 2022-12-23
相关资源
相似解决方案