作者GreatPig (最在乎的最难改变=.=)
看板PHP
标题[请益] 使用fasttemplate出现问题
时间Mon Jan 8 23:15:16 2007
大家好
我写了一只php及tpl程式如下,但执行起来会有问题
php code-->a.php
<?php
$uid=12345;
$tpl->define(array(main=>"a.tpl"));
$tpl->assign(UID,$uid);
$tpl->parse(BODY,"main");
$tpl->FastPrint("BODY");
?>
tpl code-->a.tpl
<html>
...
your uid is {UID}.
...
<html>
执行後,它应该输出--> your uid is 12345.
但是确输出 --> your uid is {12345}.
我的主机是灌 FreeBSD 4.11-RELEASE FreeBSD 4.11- RELEASE #0: Thu Se i386
php version:4.4.2
希望有那位大大指点一下迷津,谢谢><
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.162.248.22
1F:推 tonytsai88:你的 class.FastTemplate.php 没更新patch档 01/10 10:13
3F:→ tonytsai88:这是我平常在用的 01/10 10:26