[eluser]Unknown[/eluser]
I was working on a library to improve the pagination in CodeIgniter.
It permits:
- Sort results and keep it in all pages
- Save order fields and current page in the session, to use them when you left the list and then come back
- Filter results by query string and keep them in all pages
- Set items per page by query string and keep them in all pages
I attached a file with a complete example.
To use it you should:
1. Run table_database/ci_pag.sql in the database
2. Put all files in your CI folder
3. In the browser, access to domain/index.php/products
4. Filter and search products, order results and navigate by the pages.
I will improve the explanation as soon as possible.