title: What's the issue with following smarty for loop code?
body: <p>I'm using smarty template engine <strong>version 2.6.18</strong> for my web site. I've following code for printing 1 to 4 numbers. But I'm getting error as:</p>
  
  <pre><code>Fatal error: Smarty error: [in view-item-request.tpl line 67]: syntax error: unrecognized tag 'for'
  </code></pre>
  
  <p>My code is as follows:</p>
  
  <pre><code>{for $foo = 1 to 40} 
    &lt;p&gt;{$foo}&lt;/p&gt;
  {/for}
  </code></pre>
  
  <p>Can someone please help me in resolving this issue? Thanks in advance.</p>