简体   繁体   中英

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 show 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')); ?> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM