set" mean and how to implement $tpl->get in a template?" />
A
A
Alexey2019-02-24 10:12:59
DLE
Alexey, 2019-02-24 10:12:59

Data Life Engine what does "$tpl->set" mean and how to implement $tpl->get in a template?

I have this code: That is , as I understand it, it launches the get_summ_script () function and returns me a certain code in the summ that I plan to insert into the template template /public_html/templates/t_name/main.tpl. Question: How can I get the result in the template, I mean insert into the 'summ' template? Does not work...
$tpl->set ('{summ}', get_summ_script());

{summ}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2019-02-24
@Eugeny1987

what dle version?
where do you put the code?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question