Read up on the GenerateList function. It gets the name on your other stuff because there is a field called "name/title" (or something similar).
http://manual.cakephp.org/chapter/models On Dec 17, 2007 2:22 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Hello, > > i am just a beginner in cake, and i am looking since two days for an > answer to this. > > I have used bake to create the application and when I add a data row > in a table, it shows the correct drop down menues for corresponding > tables, however, one of them shows nicely the name of the row of the > other table(destination), the other drop down just shows the > id(productcategory). This application is supposed to be for end users, > so, where can I set which column i want cake to use to display the > data in the drop down? > > Example: > > Add a new Product in Table Product > > Productname : char(255) > ProductCategory_id (this is foreign key) > Destination_id(another foreigen key) > > The destination_id shows the full name of the destination, the > productcategory just shows the id numbers. > > A short hint, or a tip where i can read more about that would be very > much appreciated. > > Thank you so much, > > Tobias > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
