kamikaze_pilot
kamikaze_pilot

Reputation: 14834

using pure query on zend pagination

so I've been using Zend Pagination, and I don't like the fact that I have to keep on using the Zend_DB_Select object to paginate things...

I want to just use a raw select query

"SELECT * FROM db etc etc" 

and then pass that query into zend pagination without converting it to zend db select

is it possible to do so?

Upvotes: 2

Views: 640

Answers (1)

hakre
hakre

Reputation: 197767

If you dislike Zend_DB_Select for your pagination, no-one stops you from writing what you want as your own Zend_Paginator_Adapter_Interface. See Zend Pagination Advanced Usage, but take care you do not reinvent the wheel.

Upvotes: 2

Related Questions