index.php:
$smarty = new Smarty;
$smarty->assign(‘articleTitle‘, "Psychics predict world didn‘t end");
$smarty->display(‘index.tpl‘);
index.tpl:
{$articleTitle|cat:" yesterday."}
OUTPUT:
Psychics predict world didn‘t end yesterday.
时间: 2024-09-29 01:22:09