title: Is it possible: {$smarty.const.$My-Variable}
body: <p>I have many <code>{$var}</code> variables (PHP constants). And I want to see it in smarty, but <code>{$smarty.const.$var}</code> and <code>{$smarty.const.[$var]}</code> brings me an error. How can I do it? Thanks.</p>
  
  <p>For example, in my template I want to see (<code>$var = my constant</code>): </p>
  
  <pre><code>&lt;input type="checkbox" name="{$name}" {if $smarty.const.[$name] == "1"}checked="checked"{/if} /&gt;
  </code></pre>
  
  <p>Happy Holidays!</p>