{"issue":{"milestone":null,"user":{"id":455656,"login":"khepin","url":"https://api.github.com/users/khepin","avatar_url":"https://secure.gravatar.com/avatar/6e92179b105d2f6eaef7688240aebb1e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6e92179b105d2f6eaef7688240aebb1e"},"title":"Add default items_per_page & page_range as a bundle parameter","created_at":"2011-12-13T08:00:06Z","labels":[],"updated_at":"2011-12-18T15:15:50Z","state":"closed","id":2533933,"closed_at":"2011-12-18T15:15:50Z","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/KnpLabs/KnpPaginatorBundle/issues/68","body":"Right now the Paginator's paginate function always has 10 as a default for items per page:\r\n\r\n    public function paginate($target, $page = 1, $limit = 10, $options = array())\r\n        { ... }\r\n\r\nWould be nice to be able to set your own default as a parameter of the bundle's configuration. Same for the page range\r\n\r\n    // File: app/configs/parameters.yml\r\n\r\n    parameters:\r\n      knp_paginator.template.pagination: MyBundle:Pagination:pagination.html.twig\r\n      knp_paginator.template.sortable:   MyBundle:Pagination:sortable.html.twig\r\n      knp_paginator.paginator.items_per_page: 25\r\n      knp_paginator.paginator.page_range: 8","number":68,"url":"https://api.github.com/repos/KnpLabs/KnpPaginatorBundle/issues/68","comments":2,"assignee":null},"action":"closed"}