Project Tutorials
Introduction Directory Structure Project Setup Remove index.php using htaccess Change Default Controller CSS Add in Project Create Login Page Design Validation on Login Login with Database Flashdata on Login Display Username after Login Logout Design Dashboard Page List user data form database Insert Data Flash message show if data inserted Delete data from datebase Edit data from datebase Active Inactive user status Show active users detail on home page Image Upload Edit Image View Image on Home PageProject 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 CodeElevenstech Web Tutorials
Elevenstech Web Tutorials helps you learn coding skills and enhance your skills you want.
As part of Elevenstech's Blog, Elevenstech Web Tutorials contributes to our mission of “helping people learn coding online”.
Read More
Newsletter
Subscribe to get the latest updates from Elevenstech Web Tutorials and stay up to date