0
我有5個不同的頁面下面的代碼:CakePHP的分頁程序出現異常行爲
<div class="pagination">
<p class="page-numbers textcenter"><?php $this->Paginator->numbers(); ?></p>
<p class="prev-link"><?php echo $this->Paginator->prev('« Previous', null, null, array('class' => 'disabled')); ?></p>
<p class="next-link"><?php echo $this->Paginator->next('Next »', null, null, array('class' => 'disabled')); ?></p>
<p class="page textcenter"><?php echo 'Page '.$this->Paginator->counter(); ?></p>
</div>
但是它的表現有所不同每一頁上。下一個和上一個鏈接將出現在某些頁面上,但不會出現在其他頁面上,對於其他要輸出的內容則是相同的。
任何人都有任何想法,爲什麼發生這種情況?