Hi all,

I have an interesting problem regarding pagination.

I develop a system to display reports sourced by a 3d party (jasper,
although this is not important). I have 1 reports controller and
Reports model (and a Jasper datasource). The controller retrieves
reports by name. The model provides methods to allow to paginate
through reports (find('count'...) and paginate()).

Now because different reports return different numbers of rows, I can
not hard-code the 'limit' in the controller.

Any solution?

The only I can come up with is to multiply the number of pages
returned in find('count'...) by the 'limit' and divide by the actual
number of pages.


Because then, on line 1004 in controller->paginate() , it divides by
the limit and get's the actual correct number of pages.

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

Reply via email to