I was wondering if anyone could help me provide an example of a “best practice” example for a sortable, searchable datagrid in Symfony2 with the doctrine of ORM.
I always see tutorials with the implementation of some data, generating Entity, etc., but some / all lack code, how to enable Pagination, how the user can search in several fields from the interface and how to handle the order after the field that the user selects.
Before some people now think I'm stupid, of course, I can do a GET Variable and just do an IF clause to ask about it, but I would really appreciate the best practice, so I know how I should handle it.
Now I am thinking of an open source project for the Organization system, so I will have many tables that I have to join, and many types of data that will be displayed. I would really like it to be correct, so I don’t need to write everything again when the community laughs at my code ...
Thanks for reading and your help.
source
share