On Jun 25, 1:09 pm, "Jonathan Langevin" <[EMAIL PROTECTED]> wrote:
> I agree with Chris
>
> On 6/25/07, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
>
>
> > On 6/25/07, inVINCable <[EMAIL PROTECTED]> wrote:
> > > Each user will be linked to ONLY one city, and each city will have
> > > many users. So the best way I can think of to set up this model
> > > association is to use the hasAndBelongsToMany for the cities so each
> > > city will be assigned to a user. I have my models set up something
> > > like this. (By the way when a user signs up a city_id is automatically
> > > assigned to him that is the same as the id field in the city table)
>
> > Shouldn't it be:
>
> > city hasMany users
> > users belongTo city
>
> > --
> > Chris Hartjes
> > Senior Developer
> > Cake Development Corporation
>
> > My motto for 2007:  "Just build it, damnit!"
>
> > @TheBallpark -http://www.littlehart.net/attheballpark
> > @TheKeyboard -http://www.littlehart.net/atthekeyboard




I guess what I can't figure out is, I am trying to fill a select box
from the users/registration view. The problem is, I am calling the
school name and school_id from the schools user, which is not
accessible to the Users controller. How can I make the Schools table
accessible in the Users Controller?

basically, how can I access a table in another controller?

Thank you.


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