Skip to content

Commit

Permalink
fix createPaginator
Browse files Browse the repository at this point in the history
  • Loading branch information
Daria Prusova committed Dec 26, 2013
1 parent 9c870d5 commit 7a88afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/components/blog/controller/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function __invoke(IComponentRequest $request)

$posts = $this->postModel->getPosts();

$paginator = $this->createPaginator($posts, self::POSTS_PER_PAGE);
$paginator = $this->createObjectPaginator($posts, self::POSTS_PER_PAGE);
$paginator->setCurrentPage($request->getVar(IComponentRequest::ROUTE, 'page', 1));

return $this->createDisplayResponse(
Expand Down

0 comments on commit 7a88afb

Please sign in to comment.