Smarty3.1.8 问题 不知道从哪个版本开始取消了 allow_php_tag 该属性我想在 Smarty模板里面使用 php代码该怎么办? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 还有我在模板 文件 index.html里面 再用 {include file='a.html'} 这里面有个 $test{include file='a.html'} 这里面有个 $test这样掉用了2次但是 第一次和 第二次 我需要执行的数据不一样 我该怎么办我想在第一次里输出 'XXX1' 数据第二次输出 'xxx2'数据 我该怎么办 传参:{include file='a.html?test1=ok'} {include file='a.html?test2=ok'}#a.html$test1 = "a1";$test2 = "b2";if(isset($_GET['test1'])){ $smarty->assign("test",$test1);}if(isset($_GET['test2'])){ $smarty->assign("test",$test2);}至于allow_php_tag不清楚了 {include file='a.html' test="aaa"}{include file='a.html' test="bbb"} 求助php的多层if问题 (如何精简) PHP中crc32函数如何用来校验数据? 求专业人士帮助解决网站小问题 高手请进....数据表字段的值全被清空 php ajax取fckeditor里的内容的问题 想问个关于smarty的问题 php正则有办法去掉第一段空格吗?? $GLOBALS[HTTP_USER_AGENT] 不同系统显示的问题 静态页面的生成 整数的处理 zend studio for eclipse 中项目下的include paths 是干什么用的? php执行CMD命令行的权限 连接不上额~
{include file='a.html'} 这里面有个 $test
{include file='a.html'} 这里面有个 $test
这样掉用了2次
但是 第一次和 第二次 我需要执行的数据不一样 我该怎么办
我想在第一次里输出 'XXX1' 数据
第二次输出 'xxx2'数据 我该怎么办
{include file='a.html?test2=ok'}#a.html$test1 = "a1";
$test2 = "b2";
if(isset($_GET['test1'])){
$smarty->assign("test",$test1);
}
if(isset($_GET['test2'])){
$smarty->assign("test",$test2);
}
至于allow_php_tag不清楚了
{include file='a.html' test="bbb"}