> It's an application where students are being assigned to rooms, so the > drop down needs to show their full names (first_name and last_name). If > I just use 'name' for the first name, it will only show that, right? > > If there a way to have both merged into the select option display?
might be just as easy to write your own custom method for this: function generateNameList () { $conditions = null; $fields = 'id,first_name,last_name'; $people = $this->Person->findAll ($conditions, $fields); $return = array(); foreach ($people as $person) { $return[$person['Person']['id'] = $person['Person']['first_name'].' '.$person['Person']['last_name']; } return $return; } hth jon -- jon bennett t: +44 (0) 1225 341 039 w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---