Q:

Smarty template add to a variable error

Im trying to
    {$mouseOver = "test"}
    {$mouseOver .= " continue"}

Like i can do this in simple php:
$test = "Hello";
$test .= " continue";

echo $test; // will output: Hello continue

In Smarty PHP template. How can i do it right?

A:

v2p is on the right track, but specifically you would do it like this:
{assign var="varname" value="Hello"}
{assign var="varname" value="{$varname} World"}

{$varname}

This would print "Hello World", and $varname would continue to hold that value until further modified.

