...or is the usage of an 'afterFind' - function the right method of
resolution (because it works)?
function afterFind($results) {
foreach ($results as $key => $val) {
if ( isset($val['Event']['validity_date']) ) {
$dates = explode("-", $val['Event']['validity_date']);
$results[$key]['Event']['validity_date_fmt'] =
$dates[2].".".$dates[1].".".$dates[0];
}
}
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
-~----------~----~----~----~------~----~------~--~---