Welcome Guest, Not a member yet? Register   Sign In
How To Generate Pagination Links With REST API?
#1

Any idea how to make that happen? Like:
Code:
[
"data": "..........",
"first": "link-of-first-result",
"previous": "link-of-previous-result",
"next": "link-of-next-result",
"total": 20,
"last": "link-of-last-result"
]

Thank you.
Reply
#2

Use functions like $pager->getNextPage() to generate the URLs.
See http://codeigniter.com/user_guide/librar...ation.html
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
Reply




Theme © iAndrew 2016 - Forum software by © MyBB