Search with Pagignation |
Hi there
I use DataTables for all my table usages in CodeIgniter, basically I dump my sql result to tables by using table helper class to VIEW then in view I simply make that table as instance of DaTaTables then you will see it all set. Table is auto paginated with global smart search for all column fields. For example, i have a query for all customers then lets say $customer_table as passing param to view and make sure you set ID in table tag , assume it is #customer_table. This is the magic on VIEW to turn it to DataTables $('#customer_table').DataTable(); That is it! ...If you want more customized layout on your table then read this https://datatables.net/ Hope this help |
Messages In This Thread |
Search with Pagignation - by code_help - 01-28-2015, 01:34 AM
RE: Search with Pagignation - by advoor - 01-28-2015, 02:29 AM
RE: Search with Pagignation - by code_help - 01-28-2015, 02:49 AM
RE: Search with Pagignation - by code_help - 01-29-2015, 12:10 PM
RE: Search with Pagignation - by advoor - 01-30-2015, 08:10 AM
RE: Search with Pagignation - by code_help - 01-30-2015, 08:22 AM
RE: Search with Pagignation - by advoor - 01-30-2015, 08:41 AM
RE: Search with Pagignation - by code_help - 01-30-2015, 03:33 PM
RE: Search with Pagignation - by dbui - 01-30-2015, 10:40 PM
RE: Search with Pagignation - by code_help - 01-31-2015, 02:54 AM
RE: Search with Pagignation - by dbui - 02-01-2015, 12:14 AM
|