在cakephp分页中如何将下一个链接放在最后一个页码之前

在cakephp分页中如何将下一个链接放在最后一个页码之前,cakephp,pagination,Cakephp,Pagination,在我的页码中,有重复的最后页码 您可以始终使用此方法$this->Paginator->current($model),这将为您提供当前页码 if($this->Paginator->current($model) != $last) { echo $this->Paginator->last($last, array('rest of options')); } 我希望这对你有帮助。这里是一个链接,您可以从中获取有关paginator帮助器类的信息 if($t

在我的页码中,有重复的最后页码


您可以始终使用此方法$this->Paginator->current($model),这将为您提供当前页码

if($this->Paginator->current($model) != $last) {
  echo $this->Paginator->last($last, array('rest of options'));
}
我希望这对你有帮助。这里是一个链接,您可以从中获取有关paginator帮助器类的信息

if($this->Paginator->current($model) != $last) {
  echo $this->Paginator->last($last, array('rest of options'));
}