P
P
Pavel Usov2015-03-17 11:03:31
Debugging
Pavel Usov, 2015-03-17 11:03:31

How to print a variable in smarty CMS WebAsyst template?

I tried this way {$var|var_dump} - alas, it did not work out.
What other ways are there?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2015-03-17
@Paul_Inglsmit

{$var|@var_dump}
{$var|@debug_print_var}

{php}
$var = $this->get_template_vars('var');
var_dump($var);
{/php}

www.smarty.net/docs/en/language.function.debug.tpl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question