Due to heavy traffic on CodeIgniter, I have decided to put a tutorial on CodeIgniter. To create an application with CI(codeigniter), first step is installing the framework.
To install codeigniter you need to take the following steps:
Step 1: Get the latest version of the Codeigniter. You can download the framework form http://codeigniter.com/download.php
Step 2: Unzip the Package
Step 3: Put the codeigniter folders and its files into your web root..
Step 4: Configure Your Base URL: To configure your base URL open “system/application/config/config.php” to edit. then change this line
$config['base_url'] = “”;
to
$config['base_url'] = “http://www.yoursite.com/”;
One thing You must have to put a trailing slash in the URL.
Step 5: Configure Your database: Now if you wan to use a database then open “system/application/config/database.php” to edit.
Then change these lines
$db['default']['hostname'] = “localhost”;
$db['default']['username'] = “”;
$db['default']['password'] = “”;
$db['default']['database'] = “”;
$db['default']['dbdriver'] = “mysql”;
$db['default']['dbprefix'] = “”;
As Your configuration.
Thats it.
Now visit http://www.yoursite.com/
What do you see??