title: Include a tpl file with variables (Smarty)
body: <p>I have a "links.tpl" file which contains lines with many variables such as below</p>
  
  <pre><code>{assign var=link_main value="index.php"}    
  {assign var=link_login value="?a=login"}  
  </code></pre>
  
  <p>but when i include this file in home.tpl using <code>{include file="file.tpl"}</code>
  the variables    <code>{$link_main}, {$link_login}</code>     are not included </p>
  
  <p>i put the     <code>{assign var=link_main value="index.php"}</code>     in home.tpl and it works but not from included file</p>
  
  <p>i have tried adding <code>scope=global</code> to variable and parent to include but nothing happened</p>
  
  <p>I tried the last few hours finding a solution, any help is appreciated</p>