smarty 调用 $smarty->tmeplates 指定目录下的模板文件你 $smarty->display("./templates/xx.html"); 这样写就多了 templates 一层,自然就不对了