Monday, February 28, 2011

Re: Pagination: URL for last page

Jeremy,
I was searching a while for this simple last() solution. I recall reading about the first and last methods, but imagine my trouble searching keywords 'first' and 'last' in Google and Cake doc!!. Thanks for refreshing memory. This is how I ran it:

<?php echo $this->Paginator->first(__('[ << first page ]', true), array(), null, array('class' => 'disabled')); ?>
.....
<?php echo $this->Paginator->last(__('[ last page >> ]', true), array(), null, array('class' => 'disabled')); ?>

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: