rstewart wrote:
>
> It only seems to sort correctly on the 1st page.
>
> $pager = new Zend_Paginator (
> new Zend_Paginator_Adapter_DbSelect (
> $db->select()
> ->from (array ('p' => 'PMPPH' ),
> array ('PHPTYP' => 'p.PHPTYP', 'PHPCO' => 'p.PHPCO', 'PHPOID' =>
> 'p.PHPOID', 'PHPDSC' => 'p.PHPDSC' ))
> ->where('PHPOID like ?', $pofltrx)
> ->where('translate(PHPDSC) like ?', $descfltrx)
> ->where('PHPTYP like ?', $typeselectx)
> ->where ('PHPCO like ?', $compselectx)
> ->order ("$sortField $sortDir")
> ) );
>
I assuming $sortField and $sortDir are coming from the URL query string?
You'll need to make sure that subsequent requests (page=2...N) also include
the sort and direction items in the query string. This means that you'll
need to update your pagination view script (the view script that defines the
links to subsequent pages) to include this information.
Feel free to add further code samples which can help in the debugging
process.
-----
--
Wil Moore III
Why is Bottom-posting better than Top-posting:
http://www.caliburn.nl/topposting.html
DO NOT TOP-POST and DO trim your replies:
http://linux.sgms-centre.com/misc/netiquette.php#toppost
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Paginator-bug-tp3165298p3166376.html
Sent from the Zend Framework mailing list archive at Nabble.com.