seeee
注册会员

一般会员
UID 31288
精华
0
积分 191
帖子 158
金钱 191 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2004-9-21
状态 离线
|
smarty的一个问题求解。
以下代码是解析并打印HTML代码
include "smarty/index.php";
$type_config = mysql_fetch_object($sql_key);
$tpl->assign("background", $type_config->background);
$tpl->assign("id", $id);
$tpl->assign("title", $type_config->type);
$tpl->display('base.htm');
如何才能实现将$tpl->display('base.htm')产生的代码赋予一个变量,并不打印代码?
比如实现下面的效果:
$htm = $tpl->display('base.htm');
|  Linux Love |
|