2017 © Pedro Peláez
 

symfony-bundle pager-bundle

Pager & DataGrid bundle for Symfony

image

datatheke/pager-bundle

Pager & DataGrid bundle for Symfony

  • Sunday, March 6, 2016
  • by iamluc
  • Repository
  • 2 Watchers
  • 10 Stars
  • 1,561 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 25 Versions
  • 1 % Grown

The README.md

DatathekePagerBundle

ABOUT

Pager & DataGrid bundle for Symfony2, (*1)

Main features are : - HTTP or Console mode - "Adapters" with the ability to sort and filter: - Array - Doctrine ORM QueryBuilder - Doctrine MongoDB QueryBuilder - "Handlers" for various javascript libraries - jqGrid - Flexigrid - Dynatable - DataTables - jQuery Autocomplete - Bootstrap Typeahead - jQuery Bootgrid - Themable: - Bootstrap 2 - Bootstrap 3 - Foundation, (*2)

Build Status SensioLabsInsight Scrutinizer Code Quality Total Downloads, (*3)

LICENSE

MIT (see LICENSE file), (*4)

INSTALL

Install with composer

composer.phar require "datatheke/pager-bundle"

Update your app/AppKernel.php

``` php <?php //... $bundles = array( //... new Datatheke\Bundle\PagerBundle\DatathekePagerBundle(), );, (*5)


USAGE ----- More exemples in the [documentation](https://github.com/datatheke/DatathekePagerBundle/tree/master/Resources/doc) ## Datagrid PHP ``` php <?php /** * @Template() */ public function datagridAction() { $datagrid = $this->get('datatheke.datagrid')->createHttpDataGrid('MyBundle:MyEntity'); $view = $datagrid->handleRequest($this->getRequest()); return array('datagrid' => $view); }

TWIG, (*6)

``` html+django {{ datagrid(datagrid) }}, (*7)

{# OR BETTER #}

{% extends '::base.html.twig' %}

{% block stylesheets %}
    {{ parent() }}
    {{ datagrid_stylesheets(datagrid) }}
{% endblock %}

{% block javascripts %}
    {{ parent() }}
    {{ datagrid_javascripts(datagrid) }}
{% endblock %}

{% block body %}
    <div class="container">
        <h1>Test DataGrid</h1>
        {{ datagrid_content(datagrid) }}
    </div>
{% endblock %}

## Pager PHP ``` php <?php /** * @Template() */ public function pagerAction() { $pager = $this->get('datatheke.pager')->createHttpPager('MyBundle:MyEntity'); $view = $pager->handleRequest($this->getRequest()); return array('pager' => $view); }

TWIG, (*8)

``` html+django {% extends '::base.html.twig' %}, (*9)

{% import 'DatathekePagerBundle:Pager:bootstrap3.html.twig' as helper %}

{% block stylesheets %}
    {{ parent() }}
    {{ helper.stylesheets() }}
{% endblock %}

{% block javascripts %}
    {{ parent() }}
    {{ helper.javascripts() }}
{% endblock %}

{% block body %}
    <div class="container">
        <h1>Test pager</h1>
        <form action="{{ pager_form_path(pager) }}" method="post">
            <div class="panel panel-default">
                <div class="panel-heading">
                    {{ helper.toolbar(pager) }}
                </div>
                <table class="table table-striped table-bordered table-hover">
                    <thead>
                        <tr>
                            <th>{{ helper.orderBy(pager, 'firstname', 'Firstname') }}</th>
                            <th>{{ helper.orderBy(pager, 'lastname', 'Lastname') }}</th>
                        </tr>
                        <tr>
                            <th>{{ helper.filter(pager, 'firstname') }}</th>
                            <th>{{ helper.filter(pager, 'lastname') }}</th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for row in pager.items %}
                            <tr>
                                <td>{{ row.firstname }}</td>
                                <td>{{ row.lastname }}</td>
                            </tr>
                        {% endfor %}
                    </tbody>
                </table>
            </div>

            {{ helper.paginate(pager) }}
        </form>
    </div>
{% endblock %}

```, (*10)

The Versions

14/08 2014

dev-serialization

dev-serialization https://github.com/datatheke/DatathekePagerBundle

Pager & DataGrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar iamluc

datatables typeahead autocomplete paginator datagrid jqgrid pager flexigrid dynatable

20/05 2014

v0.3.7

0.3.7.0 https://github.com/datatheke/DatathekePagerBundle

Pager & DataGrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar iamluc

datatables typeahead autocomplete paginator datagrid jqgrid pager flexigrid dynatable

27/03 2014

v0.3.6

0.3.6.0 https://github.com/datatheke/DatathekePagerBundle

Pager & DataGrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar iamluc

datatables typeahead autocomplete paginator datagrid jqgrid pager flexigrid dynatable

14/02 2014

v0.3.5

0.3.5.0 https://github.com/datatheke/DatathekePagerBundle

Pager & DataGrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar iamluc

datatables typeahead autocomplete paginator datagrid jqgrid pager flexigrid dynatable

04/02 2014

v0.3.4

0.3.4.0 https://github.com/datatheke/DatathekePagerBundle

Pager & DataGrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar iamluc

paginator datagrid pager

03/02 2014

v0.3.3

0.3.3.0 https://github.com/datatheke/DatathekePagerBundle

Pager & DataGrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar iamluc

paginator datagrid pager

01/02 2014

v0.3.2

0.3.2.0 https://github.com/datatheke/DatathekePagerBundle

Pager & DataGrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar iamluc

paginator datagrid pager

25/01 2014

v0.3.1

0.3.1.0 https://github.com/datatheke/DatathekePagerBundle

Pager & DataGrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar iamluc

paginator datagrid pager

23/01 2014

v0.3.0

0.3.0.0 https://github.com/datatheke/DatathekePagerBundle

Pager & DataGrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar iamluc

paginator datagrid pager

09/12 2013

0.2.1

0.2.1.0 https://github.com/datatheke/DatathekePagerBundle

Pager & DataGrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

by Avatar iamluc

paginator datagrid pager

15/11 2013

0.2

0.2.0.0 https://github.com/datatheke/DatathekePagerBundle

Pager & DataGrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

by Avatar iamluc

paginator datagrid pager

12/11 2013

0.1

0.1.0.0 https://github.com/datatheke/DatathekePagerBundle

Pager & DataGrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

by Avatar iamluc

paginator datagrid pager

06/09 2013

v0.0.0-alpha1

0.0.0.0-alpha1 https://github.com/datatheke/DatathekePagerBundle

Pager & DataGrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

by Avatar iamluc

paginator datagrid pager