cakePHP Pagination View
So I have Pagination setup for cakePHP.
The problem I get is in the views with the following
<?php echo $this->Paginator->prev('« Previous'); ?>
<?php echo $this->Paginator->numbers(); ?>
<?php echo $this->Paginator->next('Next »'); ?>
So what happens is the numbers show up fine and I can view the different pages. The problem is that the previous and next button don't s开发者_如何转开发how up. I have 3 pages that I am paging.
Please let me know if there is anything that I am missing.
Maybe the CSS It's setting them as disabled?
Anyhow try
<?php echo $this->Paginator->prev('« Previous', null, null, array('class' => 'disabled')); ?>
<?php echo $this->Paginator->next('Next »', null, null, array('class' => 'disabled')); ?>
精彩评论