假設 test.tpl
{T_TEST}
那麼我要在PHP裏如何 call test.tpl 和 'T_TEST' => 'Very Good Test' 呢 ? 請用最簡單的語串寫出來,謝謝
?>[/php]
版主: 版主管理群
代碼: 選擇全部
$template->set_filenames(array(
'body' => test.tpl')
);
$template->assign_vars(array(
'T_TEST' => "Very Good Test"
));
$template->pparse('body');