5.3. cat Dieser Wert wird der aktuellen Variable hinzugefügt.
Beispiel 5-4. cat 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.
|