首页 > 代码库 > smarty连接字符串(磨死我了!!!!)

smarty连接字符串(磨死我了!!!!)

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.

smarty连接字符串(磨死我了!!!!)