Concatenation string with variable in smarty

Viewed 25619

I need in smarty template to transmit to function concatenated string constant with variable value, How can i do it?

some example code: {$obj->calledFunc('string const').$var} but . operator doesn't work

2 Answers

Use the cat modifier:

{$obj->calledFunc('string const')|cat:$var}
Related