我试图创建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个项目,不显示下一个 - 上一个链接。如何解决? 。 期待回应..