smarty问题 局部更新问题 急 本帖最后由 qq258220040 于 2011-02-22 16:00:19 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 index.phprequire('smarty/Smarty.class.php');$smarty = new Smarty;$smarty->template_dir = './';$smarty->display('index.tpl');function insert_getColumnContent($params){global $smarty;$smarty->assign('aa', '内容' );return $smarty->fetch($params['tpl'] . '.tpl');}index.tpl{insert name="getColumnContent" tpl="top"}top.tpl{$aa}测试下来没有问题。 看一下这一个文件,是漏洞还是后门? 计划任务执行php文件问题 急徵一名php程式員 PHP 5.3 register_globals Warning 如何去掉? 请教一下 php在线人数统计的数据库字段定义问题. 求PHP图片批量上传代码 php在双网卡双数据库(MSSQL和SyBase)的电脑访问数据库的问题 用php实现单页面判断,该怎么做? 关于php类继承的一个诡异问题, 困扰住了一只php老鸟。 相同字符串不相等的问题 上传图片,选择本地上传,或填外部url 关于常量的小问题,标题要长!!!!!!!!!!!!!!!!
require('smarty/Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = './';
$smarty->display('index.tpl');function insert_getColumnContent($params){global $smarty;
$smarty->assign('aa', '内容' );
return $smarty->fetch($params['tpl'] . '.tpl');
}index.tpl
{insert name="getColumnContent" tpl="top"}top.tpl
{$aa}测试下来没有问题。