On 2 oct, 01:16, Andras Kende <[email protected]> wrote:
> Basically just overwrite paginate function, something like:
>
> http://book.cakephp.org/view/249/Custom-Query-Pagination
Why is that thought to be necessary. paginate and find all have
slightly different usage but the same paramters.
$params = array( of, stuff );
$results = $this->Model->find('all', $params);
$pResults = $this->paginate();
/*
or
$pResults = $this->paginate('Model');
or
$pResults = $this->paginate($conditions);
or
$pResults = $this->paginate('Model', $conditions);
*/
Kyle Decot Please update the docs to clarify this.
Cheers,
AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---