CodeIgniter Pagination Class – Url with get parameter

codeigniter paging and plus $_GET parameter

G3n1k's Blog

let say you have paging for search content like this

http://myd0m41n.net/search/result

search is controllers, result is function

and you want to pass parameter $_GET to ur, so the result will see like this

http://myd0m41n.net/search/result?param1=someval&param2=1&param3=false

the problem you need paging to make your (download) data client smaller

the solution you can modify the search function to accept parameter page, and set ‘suffix’ pagination config  value

and the result will look like this

ci-pagination-get-param

Lihat pos aslinya

Tinggalkan komentar