CodeIgniter, jQuery, MySQL

(Codeigniter) Simple server-side DataTables example

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 : Dynamic base_url() and site_url() Codeigniter 3.0.3 +   Source Code model : Customers_model.php path : application/models/Customers_model.php   Controller Customers.php path : applications/controllers/Customers.php   view :

Read More...

CodeIgniter

(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 -> 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,

Read More...