The way the find('list') works is that it tries to find the primary key and a field that it can use to display as a label in the select. It looks for "name" by default. To tell CakePHP what field you want to use, specify it in the Model like so:
class product extends AppModel { var $name = 'Product'; var $primaryKey = 'productId'; var $displayField = 'productName'; [...snip...] } If this is a new project, I recommend using CakePHP's naming convention. It'll help avoid having to specify things explicitly. Best of luck, -Jonathan On 7/9/08, kaushik <[EMAIL PROTECTED]> wrote: > > Your question is not very clear to me. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---