Hi,
I'll try again on my problem. I have included the models and controllers
 run firefox and get this error
Fatal error: Class 'People' not found in 
C:\VertrigoServ\www\kake\cake\libs\model\model_php5.php on line 445
=====================
The plural and singular are confusing
I create Person.php as model
and
Event.php as model
I then create people_controller and
events_controller.
I have one person who can have many events.
Does cakephp honor perso and people as RAILS?
Thanks for any help
Jim

===============================
<?php
class Person extends AppModel {
 var $name = "Person";
 

    var $hasMany = array('Event' =>
                         array('className'     => 'Event',
//                               'conditions'    => 'Comment.moderated = 1',
//                               'order'         => 'Comment.created id',
 //                              'limit'         => '100',
                               'foreignKey'    => 'person_id',
//                               'dependent'     => true,
//                               'exclusive'     => false,
                               'finderQuery'   => ''
                         )
                  );
                  }
?> 
========================================
<?php
class Event extends AppModel
{
    var $name = 'Event';
       // Here's the hasOne relationship we defined earlier...
    var $hasOne = array('People' =>
                        array('className'    => 'People',
                              'conditions'   => '',
                              'order'        => '',
                              'dependent'    =>  true
 //                            'foreignKey'   => 'person_id'
                        )
                  );
}
?>
======================================
<?php
class PeopleController extends AppController {
var $name = "People";
var $scaffold;
}
?>
=================================
<?php
class EventsController extends AppController {
var $name = "Events";
var $scaffold;
}
?>
================================

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

Reply via email to