title: Smarty accessing array
body: <pre><code>{foreach from=$ncache.recmd name=spon key=k item=v}
        {if ($smarty.foreach.spon.iteration%2) eq 0 || $smarty.foreach.spon.last}  
         &lt;tr&gt;
            &lt;td&gt;
               &lt;label&gt;
                   &lt;input type="checkbox" name="iid[]" value="{$ncache.recmd[$k].item_id}"class="checkbox"/{$ncache.recmd[$k].model}{$ncache.recmd[$k].manufacturer}
               &lt;/label&gt;
             &lt;/td&gt;
             &lt;td&gt;
              &lt;label&gt;
                   &lt;input type="checkbox" name="iid[]" value="{$ncache.recmd[($k+1)].item_id}" class="checkbox"/&gt;{$ncache.recmd[($k+1)].model}{$ncache.recmd[($k+1)].manufacturer}
              &lt;/label&gt;
             &lt;/td&gt;
         &lt;/tr&gt;
       {/if}
       {/foreach}
  </code></pre>
  
  <p>here is my smarty codes.</p>
  
  <pre><code>{$ncache.recmd[($k+1)].item_id}
  {$ncache.recmd[$k+1].item_id}
  {$ncache.recmd[$k++].item_id}
  </code></pre>
  
  <p>i tried to access to value
  but result is invalid
  i tried several form as above. but it still got problem.</p>