[請益] 使用fasttemplate出現問題
大家好
我寫了一隻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
推
01/10 10:13, , 1F
01/10 10:13, 1F
推
01/10 10:26, , 2F
01/10 10:26, 2F
→
01/10 10:26, , 3F
01/10 10:26, 3F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章