|
|
|
|
| Smarty Manual |
|---|
| Prev | Chapter 5. Variable Modifiers | Next |
cat| Parameter Position | Type | Required | cat | Description |
|---|
| 1 | string | No | empty | This value to catenate to the given variable. |
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. |
|
|
|
|
|
|
|
|
|
Disclaimers: This
document is provided as free service for the benefits of Active-Venture.com's web hosting customers only. |
|
|
|
Quotes: To be capable of steady friendship or lasting love, are the two greatest proofs, not only of goodness of heart, but of strength of mind.The truly proud man knows neither superiors nor inferiors. The first he does not admit of; the last he does not concern himself about.
|
|
|
|
|