Zend Framework

inconsistent variable names in Zend_Paginator 34.2.1. example

Details

  • Type: Docs:  Improvement Docs: Improvement
  • Status: Resolved Resolved
  • Priority: Major 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; ?>

Activity

There are no comments yet on this issue.

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: