On Jan 15, 2008 2:47 PM, Tim W <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> Is this the best way to create a calculated field in a model object?
> It works perfectly, but having to merge an array doesn't seem ideal,
> and it's not OO at all.
>
> function afterFind($results)
> {
> for ($i
Hi all,
Is this the best way to create a calculated field in a model object?
It works perfectly, but having to merge an array doesn't seem ideal,
and it's not OO at all.
function afterFind($results)
{
for ($i=0; $i < count($results); $i++) {
$lens = $results[$i]['Lens'];