不用echo、print,怎样把变量显示到屏幕? 看一看这个模板类的用法!echo $tpl -> parse("add.htm");问题应该在这个上面! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://blog.csdn.net/arcow/archive/2004/10/16/139250.aspx这个有详细说明及源代码打包 楼主类模板不是这样的用法吧?你是用哪个类模板啊?PHPLib?还是SMARTY?如果是PHPLib,就应该这样类似的用法:$template = new Template("./templates","keep"); $template->set_file("msgedit","msgEdit.htm");$template->set_var("sort_name",$db->f("sort_name"));$template->set_var("sort_id",$db->f("sort_id"));$template->parse("out", "msgedit"); $template->p("out"); 安卓(或者苹果)手机客户端扣费流程疑惑(php接口) 我这想法能用PHP实现吗? php的引用,到底有什么用阿? php连接mysql问题 ,及求解 php 打印等宽度字符? 这样的效果如果实现? 如何做一个PHP首页,使不同的域名访问过来的用户,直接自动转到访问各子目录里的不同的页,比如英文版中文版本的区别 请教一个读出<td></td>间字符的正则表达式! 新手求救!!!! 怪得不得了不得了不得了! checked 问题? freebsd4.10或redhat9.0下如何安装imagemagick和imagick?
如果是PHPLib,就应该这样类似的用法:
$template = new Template("./templates","keep");
$template->set_file("msgedit","msgEdit.htm");
$template->set_var("sort_name",$db->f("sort_name"));
$template->set_var("sort_id",$db->f("sort_id"));
$template->parse("out", "msgedit");
$template->p("out");