title: cakephp Cannot use string offset as an array
body: <p>hi all in my view I'm getting this error when trying to print out information in my array.</p>
  
  <p>here is my function in the controller</p>
  
  <pre><code>public function view($name)
  $fields = $this-&gt;Template-&gt;Field-&gt;find('list',array( 
            'fields'=&gt; array('name'),
            'conditions' =&gt; array(
            'template_id'=&gt; $name)));
  $this-&gt;set('field', $fields);
  </code></pre>
  
  <p>here is the view</p>
  
  <pre><code>&lt;/br&gt;&lt;h2&gt;Here is your template fields&lt;/h2&gt;&lt;/br&gt;
  
              &lt;?php if(!empty($field))
                    {
                      foreach($field as $name)
                      {?&gt;
                          &lt;tr&gt;
                          &lt;td&gt;
                          &lt;?php echo $name['Field']['name']; ?&gt;
                          &lt;/tr&gt;&lt;/br&gt;
                          &lt;?php
              }
              }
              else
              {?&gt;
               &lt;tr&gt; &lt;td&gt;No Templates Found.&lt;/td&gt;&lt;/tr&gt;
               &lt;?php 
               }?&gt;
  </code></pre>