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}测试下来没有问题。 下面JS字符解密函数如何用C#实现?高分+100求解 弹出 "连接到127.0.0.1" 的对话框 fckeditor的问题? 前辈们都可能遇到过的问题。帮帮我 如何创建文件 请问一个提取数字的正则表达式 新浪sae环境,php连接远程sql2008服务器问题 求点拨,变量分类需点击俩次才可显示其内容 格式化字符串的问题 为什么uploadPicture=C:\\ipconfig.txt文件名称上传到了unix下就变成:/tmp/phplMcgYsfalse 了? 上传图片,选择本地上传,或填外部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}测试下来没有问题。