{$lang.plan}  *{$plans[0].Price|@" />
{$lang.plan}  *{$plans[0].Price|@" />
{$lang.plan}  *{$plans[0].Price|@"/>

How to use debug or var_dump() in smarty php?

361 views Asked by At

I am trying to debug in smarty php.

<div class="selected-plan submit-cell">
     <div class="name">{$lang.plan} <span class="red">&nbsp;*{$plans[0].Price|@var_dump}</span></div>
         <div class="field single-field">
              <select form="listing_form" name="plan">
                  <option value="0">{$lang.select}</option>

$plans:

enter image description here

But result:

enter image description here

what's the problem? Reference: how-to-debug-variables-in-smarty-like-in-php-var-dump

1

There are 1 answers

0
Tejas Prajapati On

You can use bellow syntax for debugging in smarty php:

{debug_vars varX = $plans[0].Price}