Skip to content

This solution has primarily been designed to be more modular and dynamic, following an MVC pattern to allow for multiple datatables generation, simply by passing SQL parameters - as shown in the examples provided. The purpose of this module is to act as a guide for future use of server side implementation of jQuery datatables

License

Notifications You must be signed in to change notification settings

ehfazrezwan/CI-Serverside-Datatables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codeigniter server side Datatables implementation

This module has been built on an existing datatables solution on mbahcoding.com Link

This solution has primarily been designed to be more modular and dynamic, following an MVC pattern to allow for multiple datatables generation, simply by passing SQL parameters - as shown in the examples provided. The purpose of this module is to act as a guide for future use of server side implementation of jQuery datatables

Steps

  1. Place the file "Datatables_model.php" into the directory application > models
  2. Load the model into the calling controller
  3. Define function in controller to use the data sent from the view and pass necessary SQL parameters into the datatables model and finally prepare a response based on that, formatted and echoed using JSON. (See sample controller)
  4. Configure the datatables plugin on the view page to use server side processing and set the AJAX url, data and response to interact with the function defined in the controller. (See sample view)

About

This solution has primarily been designed to be more modular and dynamic, following an MVC pattern to allow for multiple datatables generation, simply by passing SQL parameters - as shown in the examples provided. The purpose of this module is to act as a guide for future use of server side implementation of jQuery datatables

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages