开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜