Getting Codeigniter to work on localhost using xampp

I have Netbeans, Codeigniter and xampp setup on a Windows 7 machine, and I'm just trying to call a simple object to display hello world.

I keep getting an Object not found error after exhausting many lessons. When I run my script, it uses the following URL

http://localhost/project1/CodeIgniter_2.1.0/application/controllers/hello.php

So xampp is working fine when I call localhost / xampp from my browser, although I'm not sure what else needs to be configured.

I have tried many different base URLs, although mine currently config.phphas the following settings:$config['base_url'] = '';

I'm a newbie just trying to tweak the setup, so I can start working on projects, but can't go past this for a few days.

+3
source share
1

, URL- CodeIgniter. :

http://path/to/codeigniter/index.php/<controller>/<function>/<param>

, :

http://localhost/project1/CodeIgniter_2.1.0/index.php/hello

$config['base_url'] index.php, :

$config['base_url'] = 'http://localhost/project1/CodeIgniter_2.1.0/index.php';

DOCS: http://codeigniter.com/user_guide/general/urls.html

+14

All Articles