如何獲得蛋糕的PHP默認分頁拿到第一頁和最後一頁分頁鏈接蛋糕PHP默認分頁拿到第一頁和最後一頁分頁鏈接
<p>
<?php
echo $this->Paginator->counter(array(
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
));
?> </p>
<div class="paging">
<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class' => 'disabled'));?>
| <?php echo $this->Paginator->numbers();?>
|
<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
</div>
這將輸出
Page 1 of 89, showing 15 records out of 1326 total, starting on record 1, ending on 15
<< previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | next >>
我會怎樣獲得第一頁和最後一頁的鏈接也與默認分頁
first | << previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | next >> | last
的第一個和最後會有鏈接或不,,或者你只是想顯示的文字... –