CodeIgniter, jQuery, MySQL

(Codeigniter) Simple server-side DataTables example

Codeigniter DataTables Tutorial series : Simple Server-side DataTables Server-side DataTables using Bootstrap Style Server-side DataTables with ColVis (Column Visibility Extension) Server-side DataTable with Custom Filter search Screenshot : Required and Included on this source : PHP+ MySQL or you may use XAMPP –> Download Codeigniter 3.0.6 –> Download jQuery 2.2.3 –> Download DataTables 1.10.11 –> Download   Database and Query : or you can download sample data here : example.sql   Configuring Codeigniter : assets folder structure : Routing path : config/route.php   Base URL Cofig (required if using Codeigniter 3.0.3 or later) path : config/config.php see for dynamic base_url



(Codeigniter) Dynamic base_url() and site_url() Codeigniter 3.0.3 +

For security reason codeigniter 3.0.3 or later $config[‘base_url’] must be configure manually. check this article -> 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,