A
A
Anton Danilkin2017-07-01 21:00:52
PHP
Anton Danilkin, 2017-07-01 21:00:52

How to allow output directly from PHP in Smarty?

How to allow echo, print_r, var_dump output directly from PHP.
Smarty apparently clears the output buffer before rendering the template.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
NoMeRus, 2017-07-07
@NoMeRus

{php}
...
{/php}

M
Max, 2017-07-09
@bigvax

What's wrong with the usual?
{$object|@print_r}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question