2017 © Pedro Peláez
 

symfony-bundle pager-bundle

J3tel Symfony Pager Bundle

image

j3telframework/pager-bundle

J3tel Symfony Pager Bundle

  • Wednesday, September 3, 2014
  • by aristidej3tel
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

j3f-pager

$this->get('j3f.pager') to get Pager object, (*1)

Pager Interface:

public function getPage();
$page: Integer, current page
public function setPage($page);
public function needPaging();
public function hasNext();
public function nextPage();
public function hasPrevious();
public function previousPage();
public function getCountPage();
public function getItemsPerPage();
$number: Integer, Number of results 
public function setNumberItems($number);

Pager Default Config (YML)

j3tel_pager: 
    default:
        items_around_active_page: 2 #The number of pages that are displayed around the active page
        items_per_page: 25
        first_page: 1
        block_item: 3 #The number of first and last pages to be displayed 
        class: '' #css class name applied to pager html element
        template: 'J3telPagerBundle:Default:pager.html.twig'

Render Pager in Twig

_pager is a variable previously set in controller with pager Object (service)
{% block pager %}
    {% if _pager is defined %}
            {{ j3fPager(_pager, app.request) }}
    {% endif %}
{% endblock %}

The Versions

03/09 2014

dev-master

9999999-dev http://www.j3tel.fr

J3tel Symfony Pager Bundle

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Aristide Soullard

bundle pager

03/09 2014

1.0.5

1.0.5.0 http://www.j3tel.fr

J3tel Symfony Pager Bundle

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Aristide Soullard

bundle pager

03/09 2014

1.0.4

1.0.4.0 http://www.j3tel.fr

J3tel Symfony Pager Bundle

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Aristide Soullard

bundle pager

22/08 2014

1.0.3

1.0.3.0 http://www.j3tel.fr

J3tel Symfony Pager Bundle

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Aristide Soullard

bundle pager

22/08 2014

1.0.2

1.0.2.0 http://www.j3tel.fr

J3tel Symfony Pager Bundle

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Aristide Soullard

bundle pager

22/08 2014

1.0.1

1.0.1.0 http://www.j3tel.fr

J3tel Symfony Pager Bundle

  Sources   Download

MIT

The Requires

 

by Aristide Soullard

bundle pager