看板 PHP 關於我們 聯絡資訊
大家好 我寫了一隻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
tonytsai88:你的 class.FastTemplate.php 沒更新patch檔 01/10 10:13
tonytsai88:這是我平常在用的 01/10 10:26