title: Concatenate strings and variables in assignment of new variable in smarty
body: <p>I want to concatenate an already assigned variable and save it to a new variable, something like this:</p>
  
  <pre><code>{assign var=permCat value="de.admin"}
  {assign var=objectName value="myClass"}
  {assign var=objectNameUpper value=$objectName|ucfirst}
  {assign var=editPerm value=$permCat|cat:"canEdit"|cat:$objectNameUpper}
  </code></pre>
  
  <p>So, the resulting <code>$editPerm</code> should be: <code>de.admin.canEditMyClass</code></p>
  
  <p>How can I do this? Currently, it throws an error: <code>Cannot use string as array offset...</code></p>