开发者

how to pass the result of custom query in pagination

开发者 https://www.devze.com 2023-01-11 17:07 出处:网络
hi i am using cakephp for my project but i am fetchingproblem when i generate result from custom开发者_运维百科 query at that time i have no idea about that how to pass that result in to pagination.

hi i am using cakephp for my project but i am fetching problem when i generate result from custom开发者_运维百科 query at that time i have no idea about that how to pass that result in to pagination. so please help me.

thanks in advance.


This is covered in the book (http://book.cakephp.org/view/249/Custom-Query-Pagination)

Bascially, you would override paginate in the model you want to get the data from. If it will mess up the model, just create a new custom model that uses the same table and put the paginate override in there.

0

精彩评论

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