在变量中插入Smarty变量

i'm trying to insert a string containing various smarty variables and other text ( test {$testvar} ... ) in a smarty variable with this method

$this->tpl()->assign('sCurrentView',$test);

But smarty does not resolve the content and displays the smary variables as text.

What am i doing wrong? Isn't this working?

Looks like a minor syntax error to me.

$smarty_object->assign('wanted_template_name', $value);