Welcome Guest, Not a member yet? Register   Sign In
how to set the url of Pagination?
#1

(This post was last modified: 11-20-2016, 08:56 PM by startbbs.)

in CI4, i use $pager->makelinks()

it seems that the default url of pagination is "?page="
How can I define my own url style?

Thanks!

I prefer "controller/function/page" than "controller/function/?page=".
Q&A for Codeigniter
StartBBS--open-source, light weight forum software.
Best VPS:Digital Ocean
Reply
#2

If you use the pagination capabilities built into the model, then you can't. You would need to do the pagination manually. Just know that will potentially conflict with other routes you may want to use since you're now adding an additional segment to the URI.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB