Is there a better way of writing this code than the way i've done it
below? It seems quite long winded, and isn't OO at all.
function afterFind($results)
{
for ($i=0; $i < count($results); $i++) {
$lens = $results[$i]['Lens'];
$description = $lens['wide_zoom'] . '-' .
$lens['long_zoom'] . ' ' . $lens['aperture_wide'] . '-' .
$lens['aperture_long'];
$lens = array_merge($lens, array('description' =>
$description));
$results[$i]['Lens'] = $lens;
}
return $results;
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---