Reputation: 827
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 show up. I have 3 pages that I am paging.
Please let me know if there is anything that I am missing.
Upvotes: 0
Views: 3455
Reputation: 6302
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')); ?>
Upvotes: 2