Paginator (Migration from Cake 1.3 to 2.0

Posted by Christian Waschke on Stack Overflow See other posts from Stack Overflow or by Christian Waschke
Published on 2012-11-22T15:32:39Z Indexed on 2012/11/22 16:59 UTC
Read the original article Hit count: 137

Filed under:
|
|

i am struggling with the paginator in cakephp 2.0. While i am trying to migrate my application to 2.0 i cant find any solution to jump directly to the last page. In 1.3 it was quiet to do that from outside like this:

    echo $this->Html->link(__('Flights'), array('controller' => 'flights',
    'action' => 'index','page' => 'last'));

but this little trick putting 'page:last' in does not work anymore in 2.0. Of course there is a Paginator function called last, but this would only help if i would be already inside the app. My Problem is to access from an outside link directly the last page of the paginator.

Thank you for reading,

cdjw

© Stack Overflow or respective owner

Related posts about pagination

Related posts about migration