为什么我的Smarty不接受html模板格式
$smarty->display('test.tpl'); OK!
$smarty->display('test.html'); 出错,找不到!
$smarty->display('test.tpl'); OK!
$smarty->display('test.html'); 出错,找不到!
解决方案 »
- 会用manbo平台请来帮个忙!
- 谁会php转asp的呀,能否帮忙转个文件?
- php中new Java不好用,请高手指点
- soapHeader在server端如何接收,然后是如何在client发送?我写好的header,在__call总是语法错误
- 为什么用gd库函数显示图片在浏览器中显示是乱码??
- htmlentities跟htmlspecialchars没有反函数的吗?
- 上传图片问题
- 上传后php出现的问题
- 怎样让页面只刷新一次?
- 用session把用户名获取出来了,怎么把用户名所对应的头像也获取出来,求大神
- 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
??