J
J
jorshjorsh952017-08-15 14:11:58
PHP
jorshjorsh95, 2017-08-15 14:11:58

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>

Tell me, how can I make it template what is in the variable?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
imhuman, 2017-08-15
@jorshjorsh95

What for in a variable to push all template? You can also include
Or if you really want to, you can make a fetchvariable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question