title: How to generate year in Smarty?
body: <p>How can i generate a select list with the given year till this year?
  i did this</p>
  
  <pre><code>{assign var=thisyear value=$smarty.now|date_format:"%Y"}
  {if !$firstyear}
   {assign var=firstyear value="2003"}
  {/if}
  
  {if !$loop}{assign var=loop value=$thisyear}{/if}
  &lt;select name='{$id|default:year}' id={$id|default:year} style='width:70px;'&gt;
  
   {section name=yearValue max=$year start=$firstyear loop=$thisyear step=-1}
    &lt;option{if $year==$smarty.section.yearValue.index} selected="selected"{/if}&gt;{$smarty.section.yearValue.index}&lt;/option&gt;
   {/section}
  
  &lt;/select&gt;
  </code></pre>
  
  <p>unfotunatly this produces 0 till 2003 but i want that it generates 2003 till 2010 how can i do that?</p>