I want to print array variable $foo
. So I have done {$foo|@print_r}
this but its prints like "{$foo|@print_r}"
on the front page.
I’m using the Oxied eshop and its use smarty as a template engine.
Advertisement
Answer
Try at least: that the array print for php in common
JavaScript
x
<?php
print_r ($foo);
?>
Else try something like:
JavaScript
<?php
{$foo|@debug_print_var}
?>