2017 © Pedro Peláez
 

symfony-bundle mottapg-bundle

A paginator bundle for Symfony 3

image

agusmoita/mottapg-bundle

A paginator bundle for Symfony 3

  • Tuesday, November 21, 2017
  • by agusmoita
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 7 Versions
  • 17 % Grown

The README.md

# MottaPgBundle

Installation

  • Add via composer console $ composer require agusmoita/mottapg-bundle

Usage

  • Controller, (*1)

    use MottaPgBundle\Util\Paginator\Paginator;
    
    /**
     * @Route("/", name="person_index", methods={"GET|POST"})
     */
    public function indexAction(Paginator $pg, PersonRepository $repo)
    {
        return $pg
                ->setView('person/index.html.twig')
                ->paginate($repo);
    }
    
  • Repository, (*2)

    // PersonRepository.php
    
    public function buildQuery($query, $pg)
    {
        // return SELECT a FROM AppBundle:Person a
        return $query;
    }
    
  • View, (*3)

    {# person/index.html.twig #}
    
    {% extends '@MottaPg/Paginator/table.html.twig' %}
    
    {% block title %}
        
    
    

    List of People

    {% endblock %} {% block paginator_table_header %} <th>First Name</th> <th>Last Name</th> <th>Birthday</th> {% endblock %} {% block paginator_table_data %} <td>{{ entity.firstName }}</td> <td>{{ entity.lastName }}</td> <td>{{ entity.birthday|date('m-d-Y') }}</td> {% endblock %}

License

MIT License, (*4)

The Versions

21/11 2017

dev-master

9999999-dev https://github.com/agusmoita/MottaPgBundle

A paginator bundle for Symfony 3

  Sources   Download

MIT

The Requires

 

excel symfony export pagination pdf paginator massaction

18/11 2017

2.0.1

2.0.1.0 https://github.com/agusmoita/MottaPgBundle

A paginator bundle for Symfony 3

  Sources   Download

MIT

The Requires

 

excel symfony export pagination pdf paginator massaction

16/11 2017

2.0.0

2.0.0.0 https://github.com/agusmoita/MottaPgBundle

A paginator bundle for Symfony 3

  Sources   Download

MIT

The Requires

 

excel symfony export pagination pdf paginator massaction

11/11 2017

1.1.2

1.1.2.0 https://github.com/agusmoita/MottaPgBundle

A paginator bundle for Symfony 3

  Sources   Download

MIT

The Requires

 

excel export pagination pdf paginator massaction

10/11 2017

1.1.1

1.1.1.0 https://github.com/agusmoita/MottaPgBundle

A paginator bundle for Symfony 3

  Sources   Download

MIT

The Requires

 

excel export pdf paginator massaction

10/11 2017

1.1.0

1.1.0.0 https://github.com/agusmoita/MottaPgBundle

A paginator bundle for Symfony 3

  Sources   Download

MIT

The Requires

 

excel export pdf paginator massaction

10/11 2017

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

paginator