开发者

cakePHP Pagination View

开发者 https://www.devze.com 2023-04-12 05:37 出处:网络
So I have Pagination setup for cakePHP. The problem I get is in the views with the following <?php echo $this->Paginator->prev(\'« Previous\'); ?>

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号