Now I want to share example code for simple Server-side Datatables with Codeigniter. If you want you can use Ignited Datatables library. But with custom own code you can do more flexible. Here several framework and library: PHP+ MySQL or you may use XAMPP –> Download Codeigniter 3.0.6 –> Download jQuery 2.2.3 –> Download DataTables 1.10.11 –> Download step 1. create database and table for example. I have database named example and customers as table: run this query: or you can download sample data here : example.sql step 2. copy codeigniter you have download to your web server htdocs directory.
For security reason codeigniter 3.0.3 or later $config[‘base_url’] must be configure manually. check this article -> https://www.codeigniter.com/userguide3/installation/upgrade_303.html When $config[‘base_url’] is not set, CodeIgniter tries to automatically detect what your website’s base URL is. This is done purely for convenience when you are starting development of a new application. Auto-detection is never reliable and also has security implications, which is why you should always have it manually configured! One of the changes in CodeIgniter 3.0.3 is how this auto-detection works, and more specifically it now falls back to the server’s IP address instead of the hostname requested by the client. Therefore,