Hi,

My apologies in advance if this is a redundant or even a dumb question
but I can't seem to find the answer anyhwere online. I might have
missed it though since I've been at this for a couple of hours now.

I'm trying to set a variable in my controller method and have it count
based on a specific db table field.

Like so


        function index_front() {
                $this->Scorecard->recursive = 0;
                $this->set('ScorecardDates', $this->Scorecard-
>findAll('Scorecard.winner = 1 GROUP BY Scorecard.date', null,
'Scorecard.name ASC'));

                $this->set('scorecardCount', $this->Scorecard-
>findCount('Scorecard.batch_id = '.ScorecardDates['Scorecard']
['batch_id']));
}

I want to use ScorecardDates to get a specific count of
Scorecard.batch_id.

Any pointers in the right direction would help out greatly. Thanks and
apologies for the bother.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to