-1

I have a smarty template, in it there is a div, I add the {$replies} variable in it:

<div id="list-div">

    test div

    <table id="find_services"></table>

    {$replies}

</div>

but there shows Array, I can not see its inner struct:

wn

How can I see its inner struct? like var_dump's function.

user7693832
  • 6,119
  • 19
  • 63
  • 114
  • Try `{foreach}`? See also [this](https://stackoverflow.com/q/2431763/1415724). Which could probably be a duplicate of it. – Funk Forty Niner Dec 17 '19 at 14:27
  • 1
    already answered [link](https://stackoverflow.com/questions/2431763/how-to-debug-variables-in-smarty-like-in-php-var-dump) – DaszuOne Dec 17 '19 at 14:31

1 Answers1

1

To get the array var_dump, just:

 {$replies|@var_dump}
aircraft
  • 25,146
  • 28
  • 91
  • 166