That's right.

It works now.

Thank you :)

On May 1, 2008, at 8:25 AM, validkeys wrote:

>
> if you hadn't figured this one out.
>
> If you are trying to access your models model from your parts model to
> create a drop down of models in a parts view, use the following:
>
> latest 1.2: $this->Part->Model->find('list');
>
> earlier: $this->Part->Model->generateList();
>
> does that help?
>
> On Apr 30, 7:20 am, Reza Muhammad <[EMAIL PROTECTED]> wrote:
>> Forget my ignorance, I forgot to use var $belongsTo.
>> :)
>>
>> On Apr 30, 2008, at 3:22 PM, Reza Muhammad wrote:
>>
>>
>>
>>> Hi Guys,
>>
>>> I just started using CakePHP 1.2, and I have a question concerning a
>>> One to Many relationships.
>>
>>> I have two models, 'Model' and 'Part'.  One model can have many
>>> parts.  I don't have a problem creating Model controller, but when I
>>> want to add new parts, I want to have a list of the Models, and let
>>> the user choose using a drop down menu (<select></select)
>>
>>> Can anyone tell me how to use this?
>>
>>> Thank you very much.
>>> -Reza
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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