Hey AD, Yeah, just worked out one like that. Me being stupid! lol
This is what I have done, function generateList($conditions = null, $order = null, $limit = null, $keyPath = null, $valuePath = null, $groupPath = null, $page = 1, $recursive = 0) { //get the data $data = $this->findAll($conditions, null, $order, $limit, $page, $recursive); if (!empty($data)) { $data = Set::combine($data, $keyPath, $valuePath, $groupPath); } return $data; } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---