That would seem to be the best way to do it. Something like this,
maybe:
function afterFind($results) {
if ( isset($results['quantity']) and isset($results['unit_price']) )
{
$results['calculated_price'] = $results['quantity'] *
$results['unit_price'];
}
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
-~----------~----~----~----~------~----~------~--~---