I'm assuming you're referring to the paginate( ) method of the of the
Controller, as opposed to an actual component.  The solution to the
problem is two fold.  First, you need to grab the pagination
parameters from the URL, which, in your controller, will usually be in
$this->passedArgs.  You can use those values to determine the limit,
offset, and sorting of your query.  Then, after the query is executed,
you need to add some pagination statistics to $this->params.  For
that, you can replicate some of the code found here (starting on line
1022): https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/
controller/controller.php#L1022

On Feb 2, 3:24 pm, "Christoph" <[EMAIL PROTECTED]> wrote:
> Could someone point me to an example (or a page that details) how to
> use the pagination component using a manual query that I'm using in
> Model::execute()?
>
> thnx,
> Christoph


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