assign('variablename', '$value'); This can then be used as {$variablename} in the template */ $smarty->clear_compiled_tpl(); ?>