It's not a scaffolding problem, it's a model relation problem (you did
not show the Event model). You can't get the person by querying the
Events if there is no relation from events to  person. Either you make
the events belongsTo person or you query your Events from the Person
model.

On Sep 4, 7:38 pm, "SIXS" <[EMAIL PROTECTED]> wrote:
> aHi
> I have a people file and an events file zI wan to show the one person and 
> show all events  with add , delete view activity.
> ====code=====
> <?php
> class Person extends AppModel {
>  var $name = "Person";
>
>     var $hasMany = array('events' =>
>                          array('className'     => 'Event',
> //                               'conditions'    => 'Comment.moderated = 1',
> //                               'order'         => 'Comment.created id',
>  //                              'limit'         => '100',
>                                'foreignKey'    => 'person_id',
> //                               'dependent'     => true,
> //                               'exclusive'     => false,
>                                'finderQuery'   => ''
>                          )
>                   );
>                   }
> ?>
> ------
> <?php
> class PeopleController extends AppController {
> var $name = "People";
> var $scaffold;}
>
> ?>
> --------
> <?php
> class EventsController extends AppController {
> var $name = "Events";
> var $scaffold;}
>
> ?>
> ------
> When I run the events I get the events but not the person related to the 
> events.
> How does scaffolding work????
> Jim


--~--~---------~--~----~------------~-------~--~----~
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