{template "header.html"} 当前目录是:{TPLPATH} 例如,我把此目录移动到新目录为:/www/template/ 1、把{TPLPATH}目录移动到服务器中的/www/template/ 2、打开web目录中的{WEBPATH}index.php 3、在【执行主程序】之前加上下面的代码
// 此代码放到【执行主程序】代码之前 define('TPLPATH', '/www/template/');