On Thu, 23 Apr 2009, Adam Frame wrote:
> Looking in the cache (issues/actions.class.php .. executeList()) the Pager is
> being
> prepared correctly (I think). Here is what it shows ..:
>
> // pager
> $this->pager = new sfPropelPager('Issue', 5);
> $c = new Criteria();
> $this->addSortCriteria($c);
> $this->addFiltersCriteria($c);
> $this->pager->setCriteria($c);
> $this->pager->setPage($this->getRequestParameter('page', 1));
> $this->pager->setPeerMethod('selectAllFromCulture');
> $this->pager->setPeerCountMethod('getCountForCulture');
> $this->pager->init();
Ive not used the pager myself, so forgive me if Im way off. But it looks
in the above code you ALWAYS set the current page to 1. Shouldn't you test
for that request parameter and set it if it exists otherwise use 1 ?
Seems to me you will always be on page 1 regardless of what the URL says!
--
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---