master table has many detail tables( more than one)

2008-02-13 Thread jvandal

Hi,

I have a person table that has an many events table and also has many
work tables
one person has several events and also has several works .
I can't get the code correct.
==
?php
class Person extends AppModel {

var $name = 'Person';
var $useTable = 'people';

//The Associations below have been created with all possible keys,
those that are not needed can be removed

var $hasMany = array(
'Event' = array('className' = 'Event',
'foreignKey' = 
'person_id',
'dependent' = 
false,
'conditions' = 
'',
'fields' = '',
'order' = '',
'limit' = '',
'offset' = '',
'exclusive' = 
'',
'finderQuery' 
= '',
'counterQuery' 
= ''
)
);

}
?
This the code generated for one has many event .
Copied this code to have two has many work but I get an error.
What is the correct code to also have the work table associated to the
person table?

Thanks for any help
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
-~--~~~~--~~--~--~---



select person in a table and then display events

2008-02-11 Thread jvandal

HI,
I am new to cakephp and I want to select a person (by name)in a table
and link it to another table 'events'  that will list all events
related to that person.
I want to do it on the same page.
I would like an example of the cakephp code. I can create the tables
in scaffolding but only displays all people and then list all events,
but I can't understand how to create the code to do what I want.
Thanks for any help
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
-~--~~~~--~~--~--~---



linking two tables to another table

2008-01-07 Thread jvandal

Hi,
I have a person table. I have a event table and a subject table that I
want linked to the person table.  I am able to get a drop down for
the  person tale in the event table. I can't find the code to
get the subject  table to show   in the person table.
Thanks
   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
-~--~~~~--~~--~--~---



cake12 bake doesn't ask for mvc ?

2008-01-05 Thread jvandal

Hi, I am running cake12 in XP Pro and trying Bake . It doesn't ask me
if I have connections between tables, it just runs and creates a
model, controller and a view.

Is there something I'm missing??
Thanks
Jvandal
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



view of data in view has NOTICE in column heading

2008-01-03 Thread jvandal

I have baked in  cake12 with asaffold and get add, delete, edit, and
vdiew . I didn't want all colums to be displayed as there are too many
for the aray display. I deleted the unwanted fields in the view and
index ctp files.
I still see the Notices 1,2 etc and also drop down information  as
Context.Code.
It tells me I have 6 records to be displayed.
What gives?
Thanks
jvandal
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



How can I create a report with master and detail?

2007-12-29 Thread jvandal

Hello,
I  am just learning cakePHP.I have a file(table) of people and a file
of events. I have a person_id in events to tie the people record to
the  event. I want  to select the person and then display the events
associated to the person. I have this running in  regular php but
don't know how to do it in cakephp. Is there a good example or
tutorial to  illustrate this?

I have created models and controllers, but the thtml is confusing!

Thanks for any help

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



too many fields in record to display

2007-12-29 Thread jvandal

Hi,
I have a person record tha has many fields and when I bake the tables
I have too many fields showing at one time. How can I eliminate
displaying all fields and display only a selected few?

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



trying first scaffold with notes

2007-08-21 Thread jvandal

Hi,
I am running Win XP Pro and wamp(PHP, mysql, and Apache).
I installed cake in D:\wamp\www\cake. I run and get cakephp default
page. I create note.php for models, and notes_controller.php in
controller. I run d:/localhost/cake/notes/. (I have alias set up for
this as D:/wamp/www/cake/amp/). I can get the directory displayed in
the firefox page. I can't get it to run and create the files using
scaffolding. I uncommented the LoadModule andadded the AddModule but
the restart of services hangs up.

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



First Bite notes data not shown

2007-01-10 Thread jvandal

Hi,
I am running the First Bite tutorial. I can see that the screen tells
me it has found my mysql database memo. I then create note.php (in
models)and notes_controller.php (in controllers)that contain the
scaffolding statements. I try to call notes data but I don't see any
data as the tutorial shows. I look down in the folders aand I don't see
any files created by the scaffolding statement. The scaffolding
statement in Rails  produces the CRUD files. Isn't cakePHP  to  do the
same?
Maybe I am not doing the right thing to execute the notes table ?
Any help will be appreciated
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
-~--~~~~--~~--~--~---