0

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

Bohdan V.
  • 115
  • 1
  • 11

1 Answers1

0

You can use bellow syntax for debugging in smarty php:

{debug_vars varX = $plans[0].Price}
Tejas Prajapati
  • 115
  • 1
  • 6