开发者

What's the best way to paginate a dataset with Zend_Framework and Doctrine?

开发者 https://www.devze.com 2022-12-25 18:19 出处:网络
Before I start to build this myself I thought I\'d ask others to share their experience. What\'s the best / your favorite way to paginate a dataset with an a开发者_如何学编程pplication built upon Zend

Before I start to build this myself I thought I'd ask others to share their experience. What's the best / your favorite way to paginate a dataset with an a开发者_如何学编程pplication built upon Zend_Framework and Doctrine as your ORM?

I'm new to Doctrine.

I'm calling the model directly from a View Helper, bypassing the Controller, although I'm still interested if your solution uses controllers.

I did see one article on this topic: http://ciaranmcnulty.com/blog/2009/06/Simplify-pagination-logic-using-a-custom-zend-paginator-adapter

Devzone has an article using Doctrine, Zend Framework OR Pear, but none of those options mention a #ZF app that uses Doctrine.


You don't need anything special.

Look on Github for ready paginator adapter, e.g. this one.


In theory, one way is to create a custom data source adapter and plug it into Zend Paginator. http://framework.zend.com/manual/en/zend.paginator.advanced.html

0

精彩评论

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