The modifier for the Smarty.Stick characters to variables.

Today is about cat.
You can stick any character or variable after a variable.

cat, concatenating values to variables

Here's an example of how cat can be used.
In addition to strings in a variable, you can also attach a variable to it.
You can stick to it using cat in the assign.
Try to be careful how to write.
Cat behind the cat is also possible.

{assign var="itemNames" value=$prizeNames|cat:"{$}"}
{assign var=comment value='player level'|cat:{$presentLevelLimit}|cat:'from above'}

This is useful when you need to display a combination of variables.

Leave a comment

Your email address will not be published. Required fields are marked *