# Pagination for Comments

**URL:** <https://discourse.cakephp.org/t/pagination-for-comments/9729>\
**Category:** Need Help\
**Created:** [September 21, 2021, 10:08pm UTC](https://discourse.cakephp.org/t/pagination-for-comments/9729 "2021-09-21T22:08:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [September 21, 2021, 10:39pm UTC](https://discourse.cakephp.org/t/pagination-for-comments/9729/2 "2021-09-21T22:39:17Z")

</div>

> [@Pagination on related records CakePHP4](https://discourse.cakephp.org/t/pagination-on-related-records-cakephp4/9614):
>
> When baking an app, you get a view.php able to show the child records related to a parent record: The child records are not paginated like they are by default in the index.php when baking that template. How to change the baked controller to get the pagination into effect? My ‘natural’ thing to do is: public function view($id = null) { $group = $this-\>paginate($this-\>Groups-\>get($id, ['contain' =\> ['Individuals'], ])); $th…

---

_[View the full topic](https://discourse.cakephp.org/t/pagination-for-comments/9729)._
