title: Smarty object array access
body: <p>I have  result from a pdo object fetch all as std object result which iam goiing trough like this.</p>
  
  <pre><code>{foreach from=$users key=userID item=row}
                              &lt;tr&gt;  
                                  &lt;td&gt;
                                      {$row-&gt;name}
                                  &lt;/td&gt;
                                 {foreach from=$regions key=regionId item=region}
                                      &lt;td&gt;
                                      {assign var=id value=$row-&gt;id}{assign var=cid value=$region-&gt;id}  &lt;input type="checkbox" name="regionChecked[{$region-&gt;id}][]" value="{$row-&gt;id}" {if $assighnedUsers.$id.$cid eq 1}checked="checked"{/if}&gt;
                                      &lt;/td&gt;
  
  
  
   {/foreach}
                                  &lt;td&gt;
                                   {$row-&gt;id|@var_dump}   &lt;input type="checkbox" name="regionDefault" value="{$row-&gt;id}" {if $loleq $row-&gt;id}checked="checked"{/if} &gt;
                                  &lt;/td&gt;
                                  &lt;td data-user="{$userID}"&gt;
                                      {$deleteButton}
                                  &lt;/td&gt;
                              &lt;/tr&gt;
                          {/foreach}
  </code></pre>
  
  <p>Now my question is can i avoid the </p>
  
  <pre><code>{assign var=id value=$row-&gt;id}{assign var=cid value=$region-&gt;id}
  </code></pre>
  
  <p>Somehow? i tried varios combinations but none were working.</p>
  
  <p>like $region.$row->id</p>