我試圖創建pagination.so我創建了一個「pagination.phtml」並將其存儲在的意見/腳本/' 並添加指定的行我index.phtml '$ this-> paginationControl($ this-> paginator,'Sliding','pagination.phtml');.分頁中的Zend
pagination.phtml代碼是在這裏
<?php if ($this->pageCount): ?>
<div class="paginationControl">
<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
<a href="<?php echo $this->url(array('page' => $this->previous)); ?>">
Previous
</a> <span class="bar"> | </span>
<?php else: ?>
<span class="disabled"> Previous</span> <span class="bar"> | </span>
pagesInRange爲$頁):> 電流):> URL(陣列( '頁'=> $頁));? ?> 「> | | 下)):?> URL(陣列( '頁'=> $這個 - >下));>」> 接着 接着
我的記錄包含60個項目,並且每個頁面的記錄設置爲10個 但只顯示前10個項目,不顯示下一個 - 上一個鏈接。如何解決? 。 期待迴應..