$ this-> Paginator-> last()に付属するリンクではなく、実際の数字自体ではなく、最後のページ番号だけを取得するにはどうすればよいですか?
2 に答える
3
このリンクは、同じことを達成するのに役立ちます。
<?php echo $this->Paginator->counter('{:pages}');
//counter() method with all options
//echo $this->Paginator->counter('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}');?>
ビューでcounter()メソッドを呼び出して、最後のページ番号を取得できます。
于 2012-08-09T05:56:38.177 に答える
0
別の解決策:
echo $this->Paginator->param('pageCount');
于 2019-03-05T08:01:40.430 に答える