KnpLabs/KnpPaginatorBundle — pull request #91 by loostro (2012-03-02 15:10:50+00:00)
Title: passing $alias to sortable template

Needed if you want to create custom sortable buttons and you are useing multiple paginators.

In my case:
- I had a FORM createUser
- within that form I had two lists: roles list and groups list
- both of them paginated by KnpPaginator
- to submit user inputed data when sorting the lists I had to replace Anchor tags with Button tags
- to distinguish in the controller which paginator sent the request I had to set paginator's alias as submit buttons name
- in order to render submit button with paginator's alias as its name I had to make this small change :)