cat

Позиция параметраТипОбязателенcatОписание
1строка (string)НетпустоДанная строка добавляется к модифицируемому значению.

Данная строка добавляется к модифицируемому значению.

Пример 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.