The error has nothing to do with your view.  It will have to do with either
your model or your controller.  As people have previously stated can you do
a debug($this) before and after your find? It will show if the Address
model is actually loaded or not.  If its not loaded then your find method
will for sure not work.

On Thu, Oct 18, 2012 at 12:09 PM, Russell Brown <[email protected]>wrote:

> Ok.  I changed the index.ctp as shown in the pertinent section of code as
> follows (but I still get the same error):
>
>  foreach ( $address_list as $line ) {
>   $address = $line['Address'];
>  echo
> '<tr>'.
> '<td>'.$address[0]['id'].'</td>'.
>  /* '<td>'.$this->Html->link($address['first_name'],
> array('action'=>'view', 'id'=>$address['id'])).'</td>'.
>  */
>
> '<td>'.$this->Html->link($address['first_name'], array('action'=>'view',
> 'id'=>$address[0]['id'])).'</td>'.
>  '<td>'.$address['last_name'].'</td>'.
> '<td>'.$address['email'].'</td>'.
>  '<td>'.$address['phone'].'</td>'.
> '<td>'.$address['address'].'</td>'.
>  '<td>'.$this->Html->link('edit', array('action'=>'edit',
> 'id'=>$address[0]['id'])).' '.
>
> $this->Html->link('delete', array('action'=>'delete',
> 'id'=>$address[0]['id'])).'</td>'.
>
>
>
> On Wednesday, October 17, 2012 9:27:07 AM UTC-5, PlanoCoder wrote:
>>
>> Pull your Array
>>
>> you may need to change
>>
>> '<td>'.$address['id'].'</td>'.
>>
>> to
>>
>> '<td>'.$address[0]['id'].'</**td>'.
>>
>> or something like that
>>
>>  --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to