Is is possible to paginate based on data returned from a previous query? Example:
I'm displaying the detail for a school. Each school has many reports and I would like to paginate just the reports that were returned from the query used to look up the school. My first instinct was to just do something like this: $this- >paginate($school['Report']) However this didn't work; I'm guessing because paginate calls find itself. Does this mean I need to use contain to not return the reports the first time then make a second query using paginate for the schools reports? Is there a way to do this without making that second query? Lastly, I followed the ajax (jQuery) pagination examples to make the full list of schools and reports paginated with ajax. How can I reuse these elements to make the reports section on the view ajax paginatable. (I'm pretty sure thats a valid technical term...) Thanks in advanced for any assistance and insight. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
