Codeigniter MVC Framework PHP

First sample program – CodeIgniter

Step 1 : In controller, create a file name “sampleController.php” on below path path: C:\xampp\htdocs\CodeIgniter\application\controller. Write following code: <?php class sampleController extends CI_Controller {   public function __construct() { parent::__construct(); }   //This is Default function of controller public function index() { //Loading view file sampleView.php $this->load->view(‘sampleView’); }   public function Hello() { //Loading view […]

Codeigniter MVC Framework PHP

How to load or connect multiple databases in Codeigniter framework

In some time, we need to connect one or multiple databases in our application or project to perform various database operations. Codeigniter framework provides very simple configuration to connect multiple databases. The step-by-step instruction is given below to connect multiple databases Codeigniter framework. Step1: Database Configuration file of Codeigniter Open Database Configuration file from below […]