Does symfony2 provide paging components?
天蓬老师
天蓬老师 2017-05-16 16:45:24
0
1
370

RT, do you need to expand it yourself?
If you need to extend it, which file do you usually put it in? Are there any regulations?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
左手右手慢动作

There are two third-party bundles:

  • https://github.com/KnpLabs/KnpPaginatorBundle
  • https://github.com/whiteoctober/WhiteOctoberPagerfantaBundle

All of the above can be implemented with adapter interfaces, which can support different data source types;

If you want to extend it yourself, take Doctrine as an example. You can make a base class for Repository, implement the paging logic you need in this base class, and configure the Models with specific implementations inherited from this Repository. As for the placement location of the Repository, it can be placed under the Entity (Doctrine ORM) or Document (MongoDB) folder of the Bundle

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template