cat
This value is concatenated to the given variable.
Example 5-4. cat
<?php $smarty = new Smarty; $smarty->assign('articleTitle', "Psychics predict world didn't end"); $smarty->display('index.tpl'); ?>
|
Where index.tpl is:
{$articleTitle|cat:" yesterday."} |
This will output:
Psychics predict world didn't end yesterday. |
|