Answer the question
In order to leave comments, you need to log in
How to pass template from variable to smarty?
Hello everyone, there is a variable, and in it a piece of the template
$var = {name}{surname} ;
naturally $smarty->assign('var',$var);
and there is a pattern:
<div>
<h1> INFORMATION </h1>
{$var} // выводит как есть в переменной
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question