Skip to content

Commit

Permalink
Fix cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Feb 17, 2014
1 parent 2368b97 commit 36cc1d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/07. Cookbook.md
Expand Up @@ -78,7 +78,7 @@ public function get(Selectable $users)
$paginator = $this->paginatorWrapper($users);
$paginator->setCurrentPageNumber($this->params()->fromQuery('page', 1));

return $this->resourceModel($users);
return $this->resourceModel($paginator);
}
```

Expand All @@ -101,7 +101,7 @@ public function get(Selectable $users)
$paginator = $this->paginatorWrapper($users, $criteria);
$paginator->setCurrentPageNumber($this->params()->fromQuery('page', 1));

return $this->resourceModel($users);
return $this->resourceModel($paginator);
}
```

Expand All @@ -123,7 +123,7 @@ public function get(Selectable $users)
$paginator = $this->paginatorWrapper($users, $criteria);
$paginator->setCurrentPageNumber($this->params()->fromQuery('page', 1));

return $this->resourceModel($users);
return $this->resourceModel($paginator);
}
```

Expand Down

0 comments on commit 36cc1d3

Please sign in to comment.