2. Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not
official document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
4. Intro of CodeIgniter
CodeIgniter (CI) is one of popular php framework. If you are already building PHP
Application, CodeIgniter will help you to do it better and more easily. With
CodeIgniter, you can save time, make your web more robust, your code will be
easier to read and maintenance. It is free, lightweight, and simple to install..
With CodeIgniter, you can cut down the amount of code you need to type. This is
not just good for lazy, but: less type, fewer mistake, and less time for spend
debugging.
6. CI Database Configuration
Search Google CodeIgniter or http://ellislab.com/codeigniter | Copy to Server
Change Default Controller | Config->routers -> Default Controller
Calling a Function to load | $this->functionname();
7. Models
Model
-------
<?php
class Math extends CI_Model{
public function add(){
return 1+1
}
}
Controller
---------
public function addStuff(){
$this->load->model("math");
$this->math->add();
}
$this->addStuff();
12. URLs |mod_rewrite | URIs s
Create file .htaccess | Open and Correct Rewrite Base
Check rewrite module is on in Local Apache Server
Last Open -> Config Folder -> Config-> remove index.php
https://github.com/EllisLab/CodeIgniter/wiki/Removing-
index.php-in-codeigniter-xampp-for-windows
13. Connecting DataBase
Open -> Config Folder -> autoload->
Create the Database
Open database.php within CodeIgnitersystemapplicationconfig. Set config like below:
24. If this presentation helped you, please visit our
page facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com