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