开发者

CakePHP Paginate() the results from a find subquery?

This is a follow-up to an earlier question here: CakePHP find statement for a sql query involving two models

I wasn't sure whether to add it on to there, but I figured this is a new question in itself. My apologies if this isn't correct!

Given a cakephp find subquery, is it possible to use paginate() on the results of the find开发者_如何学Go? from the cake documentation, it seems that the paginate() function only works on Models, not on an array of data.

Thank you!


if you already have all the data in the array, I suggest output all that to your page (not the same as showing all the data) and use javascript to paginate it (just use a javascript grid plugin out there): more responsive app and less load on the server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜