Make sure you have your associations set correctly.

Just guessing here but I think it is Lead hasMany Activities so in the
Lead model you need

var $hasMany = array('Activity');

Then when you call find*() your results shoudl look similar to

Array
(
     [Lead] => Array
                (
                    [id] => 64
                 )

            [Activity] => Array
                (
                    [0] => Array
                    (
                         [Activity] => Array
                            (
                                 [id] => 64
                            )
                     )
                )
         )
)

In your view you can access your Activities via

<?php foreach ($this->data['Lead']['Activity'] as $activity) {
     echo $activity['Activity']['id'];
  }
?>

Hope this helps. If in doubt debug() your results to see the array
structure and go from there
On Jun 14, 7:26 am, Amy1234 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a lead table and an activity table. The lead is the parent
> association, while the activity table is the child (related)
> association. I would like to add an activity on the view screen as the
> lead. I don't want to have to go to another url to add the activity.
>
> How would I do that?
>
> Thanks for your help
>
> Amy


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to