Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Oct 4, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions documentation/03-basic-crud.markdown
Expand Up @@ -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 ##
Expand Down