title: How do I create a 'for' loop in Smarty 2?
body: <p>I would like to know if it is possible to do something similar to a for cycle using Smarty 2.</p>
  
  <p>I would like to have something like this:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;select&gt;
  {for $i from 1950 to 2000 }
     &lt;option value="{$i}"&gt;{$i}&lt;/option&gt;
  {/for}
  &lt;/select&gt;
  </code></pre>
  
  <p>What function should I use, if any?</p>