title: Get Template Name - Smarty
body: <p>I'm dealing with website is a mess and need to find out the template file that smarty is rendering.</p>
  
  <p>Is there a method on the smarty template object that I can call to get the current template file?</p>
  
  <p>for example</p>
  
  <pre><code>echo $tplObj-&gt;getTemplate(); // echos "shop/templates/cart.tpl"
  </code></pre>