title: Smarty Resource directory
body: <p>I'm using smarty for my latest personal project and run into a problem.</p>
  
  <pre><code>$smarty = new Smarty;
  $smarty-&gt;template_dir = 'templates/dashboard/';
  </code></pre>
  
  <p>The above makes load .tpl files from this directory, this works great for me, but inside the .tpl i want to load an image and i have to do:</p>
  
  <pre><code>&lt;img src="templates/dashboard/images/avatar/full/{$user-&gt;username}.jpg" class="profile-avatar img-thumbnail"&gt;
  </code></pre>
  
  <p>What i would like to do but won't work is:</p>
  
  <pre><code>&lt;img src="images/avatar/full/{$user-&gt;username}.jpg" class="profile-avatar img-thumbnail"&gt;
  </code></pre>
  
  <p>I tought when i set the template_dir this would also change but it doesn't...
  I couldn't find any documentation where i can change this for the .tpl file.</p>
  
  <p><strong>note the 'templates/dashboard', that's what i want to get rid of inside the .tpl</strong></p>