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

(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?


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

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.

Theme © iAndrew 2016 - Forum software by © MyBB