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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---