On Jan 8, 2008 2:06 PM, francky06l <[EMAIL PROTECTED]> wrote:
>
> I suppose your model is Game, and your action is"score":
>
> function score()
> {
>         $pageparam = array('controller' => 'Games',
>                            'action'     => $this->action);
>
>         $this->paginate['Game'] = array('fields' => array('DISTINCT
> week'),
>                                             'limit'  => 10,
>                                             'order'  =>
> array('Game.week' => 'ASC'),
>                                             'url'    => array('url' =>
> $pageparam));
>
>         $cond = null
>
>         /* optionnaly you can set the cond ie : $cond =
> array('league_id' => $id) */
>         $this->set('games', $this->paginate('Game', $cond))
> }
>
> There is not warranty that will work, and it might contain some
> typo :-)

Thanks so much for the help.  I'll try it out and lay blame where appropriate.

-- 
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard

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