如题:报错:

Unable to load template file 'System/header.htm' in '/var/www/website/cms/Template/Default/Web/Index/index.htm'

结构如下:

Web/Index/index.htm

Web/System/header.htm

index.htm文件第一行如下:

{{include file="System/header.htm"}}

亲,你在windows下设置的路径放到linux下是不行滴!

在linux下不能正确解析相对路径。

后来php哥们给改了,偶刚开始还不会!5555!

改了模板:cms\Core\Library\Vendor\Smarty\sysplugins下的  smarty_internal_template.php

public function getSubTemplate($template, $cache_id, $compile_id, $caching, $cache_lifetime, $data, $parent_scope)
{
      // already in template cache?
     $template = '../'.$template;

..................

}

直接在原路径上加 “../”返回到上层路径再解析解决问题。

最新文章

  1. ExecuteReader在执行有输出参数的存储过程时拿不到输出参数
  2. SQL中PIVOT 行列转换
  3. webform简单控件
  4. java事务的类型——面试被问到
  5. SUSE linux ,liveUSB制作方法
  6. Ubuntu ENet 的下载和编译
  7. Linux Epoll介绍和程序实例
  8. Json序列化与反序列化完整实例
  9. android studio导入包后无法import
  10. OpenGL红宝书例3.1 -- glBufferSubData使用
  11. 项目管理之 Objective-C 编码规范
  12. SQL Server 文章目录
  13. python---冒泡和短冒泡排序
  14. 什么是ELK
  15. Ubuntu终端多窗口分屏Terminator
  16. springMVC:HandlerInterceptor拦截器的使用
  17. 知物由学 | AI时代,那些黑客正在如何打磨他们的“利器”?(一)
  18. ubuntu12.04 修改登陆用户 为root
  19. java 调试
  20. js失效的原因及解决方式

热门文章

  1. word中创建文本框
  2. zend framework多模块配置
  3. PHP 学习1- 函数之error_reporting(E_ALL ^ E_NOTICE)详细说明
  4. URAL 1146 Maximum Sum 最大子矩阵和
  5. Python之路Day15
  6. [LeetCode]题解(python):044-Wildcard Matching
  7. URL参数中有 特殊符号或加密数据 的问题解决
  8. git 删除右键菜单
  9. TPM 2.0 近况及模拟器开发
  10. linux常用命令加实例大全