smartymo模办中能否直接调用PHP中的函数? 为什么我的Smarty不接受html模板格式 $smarty->display('test.tpl'); OK! $smarty->display('test.html'); 出错,找不到! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可能出现的2个地方:1你smarty没有配置好,test通过了吗,2,试一下.htm可以吗 如何在smarty模板中调用PHP的函数?---------test1.php....function bBar($bArray){ ... echo "<a class=link4 href=?menu=".$bArray[0].">".$bArray[0]." | </a>....."; ...}----------test1.html...<?php bBar($bArray); ?>---------test1.tpl{ ?????如何调用? inster 函数如何用? } 自己注册一个like:1.php===============function a($data){ return '<font color=red>'.$data['data'].'</font>';}$smarty->register_function("a","a");1.tpl=============================={a data='hellow world'} 1使用函数注册2{php}function(){/php}直接在模板中使用php语句 谢谢提示,另一个问题是为什么模板文件只接受.tpl不接受.html?? 求一个sql在线练习的网址 要如何设置hosts文件? PHP的得分终于超过了灌水区 PHP 安装mysql 5.5出现错误 求大神 <form>和<table>的嵌套以及布局问题 php高手帮帮忙!!!!!!!!!!!!!!急!!!!!!! 表操作问题 如何通过PHP直接访问另外一台WEB服务器的网页 各位高手,请帮忙解决下面的问题。 在windows 下如何控制某些目录不执行php mysql数据库从5.0版本导入到4.1.7版本,乱码问题怎么解决呀?? 求助-在Linux系统中对文件属性设置不了
---------test1.php....
function bBar($bArray)
{
...
echo "<a class=link4 href=?menu=".$bArray[0].">".$bArray[0]." | </a>.....";
...
}----------test1.html
...<?php bBar($bArray); ?>
---------test1.tpl
{ ?????如何调用? inster 函数如何用? }
like:1.php
===============
function a($data)
{
return '<font color=red>'.$data['data'].'</font>';
}
$smarty->register_function("a","a");1.tpl
==============================
{a data='hellow world'}
2{php}function(){/php}直接在模板中使用php语句
只接受.tpl
不接受.html
??