作者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