蛋糕php多页分页在同一视图 [英] cake php multiple pagination on same view

查看:224
本文介绍了蛋糕php多页分页在同一视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在同一个ctp文件上显示两个不同模型的两个列表。
如何在不使用ajax的情况下设置两个分页?

解决方案

div>

根本不可能使用两个paginator,不同的模型或相同的模型。你需要使用ajax分页。 CakePHP标准不允许在同一视图中使用两个paginator。


I want to show two listings from two differant models on the same ctp file. How can i set two pagination without using ajax? Its hardly requirement for my project.

Thanks in Advance.

解决方案

It is simply not possible to use two paginators, with different models or with the same model. You need to use ajax pagination. The CakePHP standard does not allow two paginators on the same view.

这篇关于蛋糕php多页分页在同一视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆