Project Setup

In this project. Firstly you have to create database in localhost phpmyadmin

 

Step 1 : Run this link http://localhost/phpmyadmin on browser.

 

Step 2 : Click on databases and enter database name ci_project and then click to create.

 

Setup of Codeigniter Project

Step 1 : Open your autoload file in config folder. ( Path : project / application / config / autoload.php ).

 

Change these lines: 

Previous code : $autoload['libraries'] = array();

New code : $autoload['libraries'] = array('database', 'email', 'session');

 

Previous code : $autoload['helper'] = array();

New code : $autoload['helper'] = array('url', 'file');

 

Step 2 : Open your config file in config folder. ( Path : project / application / config / config.php ).

 

Change these lines: 

Previous code : $config['base_url'] = '';

New code : $config['base_url'] = 'http://localhost/project/';

 

Previous code : $config['index_page'] = 'index.php';

New code : $config['index_page'] = '';

 

Previous code : $config['encryption_key'] = '';

New code : $config['encryption_key'] = 'project';

 

Step 3 : Create connection to database. Now open on database file in config folder ( Path : project / application / config / database.php ).

 

Change these lines: 

Previous code : 

'hostname' => 'localhost',
'username' => '',
'password' => '',
'database' => '',

New code : 

'hostname' => 'localhost',
'username' => 'root',
'password' => '', 
'database' => 'ci_project',

 

Now setup is complete of your codeigniter project


Source Code:

Codeigniter tutorial for beginners

In this project. We are providing you, how to create small project in Codeign....

Source Code