smarty 的问题,用include调用了另一个模板,可就是不显示。。。 应该是没有问题的啊。注意一下模板的文件名及存放位置是否正确。为了调试,可以考虑将include_once("include/MyPhpClass.php");先注释掉 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 位置都是正确的,因为可以显示index.tpl的内容,只是显示不了head.tpl和footer.tpl的内容 require("smarty.inc.php"); include_once("include/MyPhpClass.php"); $smarty=new Smarty; $smarty->assign("test","测试的内容"); $smarty->assign("title","主页"); $smarty->display("index.tpl");{include file="header.tpl" title=$title} 呵呵,用你的代码,我在本机输出没有任何错误。显示正确换上Smarty最新版本试试。 把index.tpl删了又重新建了一个,居然行了,莫名奇妙 hosts文件的小问题 这网站 视频怎么和旁边的内容同步的 在Apache Server 上怎样下载一个目录的所有东西,还是需要用什么工具? 请问php如何获得iis虚拟目录的物理路径呢? 我建了个JScript基础论坛,热烈欢迎初级用户前来讨论。 PHP表单中的值怎取不出来? 谁能提供几个好的邮件列表的系统看看或网址 代理服务器(Proxy Server)与SESSION or COOKIE ,很难的,请求帮助解决问题!! 刚开始自学php,关于表单验证,不明白,求帮忙 PHP爬虫抓取tmall价格频次 换域名+301转向的问题 php查询字段错误
require("smarty.inc.php");
include_once("include/MyPhpClass.php");
$smarty=new Smarty;
$smarty->assign("test","测试的内容");
$smarty->assign("title","主页");
$smarty->display("index.tpl");
{include file="header.tpl" title=$title}