It doesn't work right away, but something like this does work: In my player model:
function afterFind($results) { foreach ($results as $key => $val) { if( isset( $val['Player'] ) ) { $results[$key]['Player']['full_name'] = $val['Player']['first_name'] . ' ' . $val['Player'] ['last_name']; } } return $results; } and then you can set: var $displayField = 'full_name'; On May 31, 10:49 am, gentleJuggernaut <[EMAIL PROTECTED]> wrote: > When using the Scaffolding and declaring a $displayField in a foreign > model, is there a way to specify two fields (i.e. var $displayField = > 'first_name' . 'last_name';)? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---