Custom CakePHP 1.2 Pagination

Chris Hartjes erklärt Custom Pagination in CakePHP 1.2.

Okay, so it turns out that the paginate() method that is used to generate the data that you (oddly enough) paginate through takes the same arguments as Model::findAll(). So, if you want to use your own query, you simply create a ‘paginate’ method for your model.