Details
-
Type:
Docs: Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6.0, 1.6.1
-
Fix Version/s: 1.6.2
-
Component/s: Zend_Paginator
-
Labels:None
-
Language:English
Description
inconsistent variable names in example
You use pageNumber and page in the example. Because of this the example won't work!
in 34.2.1.
$paginator->setCurrentPageNumber($this->_getParam('pageNumber'));
34.2.2.1.
<!--
See http://developer.yahoo.com/ypatterns/pattern.php?pattern=searchpagination
-->
<?php if ($this->pageCount): ?>
<div class="paginationControl">
<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
<a href="<?= $this->url(array('page' => $this->previous)); ?>">< Previous</a> |
<?php else: ?>
<span class="disabled">< Previous</span> |
<?php endif; ?>