How to run my project using codeigniter?

Discussion for various published PHP frameworks, including Zend Framework, CodeIgniter, Kohana, CakePHP, Yii, Symfony, and others.

Moderator: General Moderators

Post Reply
rkrathor
Forum Newbie
Posts: 1
Joined: Mon Jun 23, 2014 6:40 am

How to run my project using codeigniter?

Post by rkrathor »

Hi,
I am just start using code igniter and i donot have much knowledge of it.
I recently get a project to view built in codeigniter. i put this folder in www of wamp and start execution.
first i got error related phpadmin i solved that but now i could not able to go further of this page message.

"Welcome to CodeIgniter!

The page you are looking at is being generated dynamically by CodeIgniter.

If you would like to edit this page you'll find it located at:
application/views/welcome_message.php

The corresponding controller for this page is found at:
application/controllers/welcome.php

If you are exploring CodeIgniter for the very first time, you should start by reading the User Guide.
".

I just want to know how to come out of this and start viewing my website pages.

Thanks
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: How to run my project using codeigniter?

Post by Celauran »

rkrathor wrote:"If you are exploring CodeIgniter for the very first time, you should start by reading the User Guide."
I'd start there. Have you worked with frameworks before? Are you familiar with OOP? The MVC paradigm?
danial32
Forum Newbie
Posts: 1
Joined: Tue Aug 19, 2014 2:06 am

Re: How to run my project using codeigniter?

Post by danial32 »

I did not get your problem exactly, however i would like to reply for your question.

Follow the steps to rectify your problem.

Go to config.php file and point the base url to the correct location

$config['base_url'] = '';

Then go to the database.php and enter the right database parameters


$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'user';
$db['default']['password'] = 'password';
$db['default']['database'] = 'dbname';

now if you want to redirect it to specific controller by default go to routes.php file in config directory and change this vairable $route['default_controller'] = "yourcontrollername"

I hope this would help to run your project.
ethansamuel17
Forum Newbie
Posts: 10
Joined: Thu Sep 18, 2014 1:08 am

Re: How to run my project using codeigniter?

Post by ethansamuel17 »

I agree with danial that above all steps will help you to solve your problem. Have you tried it to solve your issue?
Post Reply