Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Renaming "$pager" to "$authorPager" #170

Merged
merged 1 commit into from

2 participants

@aik099

Using declared $authorPager variable name instead of $pager variable, which wasn't declared.

@aik099 aik099 Renaming "$pager" to "$authorPager"
Using declared $authorPager variable name instead of $pager variable, which wasn't declared.
8528d77
@willdurand
Owner

Sounds good, thank you ;)

@willdurand willdurand merged commit a42afd9 into propelorm:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 4, 2012
  1. @aik099

    Renaming "$pager" to "$authorPager"

    aik099 authored
    Using declared $authorPager variable name instead of $pager variable, which wasn't declared.
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 5 deletions.
  1. +5 −5 documentation/03-basic-crud.markdown
View
10 documentation/03-basic-crud.markdown
@@ -259,11 +259,11 @@ foreach ($authorPager as $author) {
echo $author->getFirstName();
}
// A pager object gives more information
-echo $pager->getNbResults(); // total number of results if not paginated
-echo $pager->haveToPaginate(); // return true if the total number of results exceeds the maximum per page
-echo $pager->getFirstIndex(); // index of the first result in the page
-echo $pager->getLastIndex(); // index of the last result in the page
-$links = $pager->getLinks(5); // array of page numbers around the current page; useful to display pagination controls
+echo $authorPager->getNbResults(); // total number of results if not paginated
+echo $authorPager->haveToPaginate(); // return true if the total number of results exceeds the maximum per page
+echo $authorPager->getFirstIndex(); // index of the first result in the page
+echo $authorPager->getLastIndex(); // index of the last result in the page
+$links = $authorPager->getLinks(5); // array of page numbers around the current page; useful to display pagination controls
{% endhighlight %}
## Collections And On-Demand Hydration ##
Something went wrong with that request. Please try again.