First of all please download a copy of codeigniter's latest release here www.codeigniter.com
Ok, I would assume that you've already set your web server in place. Since I'll not be tackling it here.
Now let's proceed.Open your favorite text editor like Notepad, Notepad++ etc. and create a new filename helloworld.php,
Enter this code:
<?php
class HelloWorld extends Controller{
function HelloWorld(){
parent::Controller();
}
function index(){
$this->load->view('hello');
}
}
?>
And save this in system/application/controllers.
Now, create another file named as hello.php
Enter this code:
<?php
echo "Hello World!";
?>
Now save the file in system/application/views.
Open your browser and point this web address: http://localhost/codeigniter/index.php/helloworld/
See, its that easy. Now lets have a quick overview on what our code does.
$this->load->view('hello');
This code requests to load the hello.php file under views folder.
Put this on mind that in MVC framework. The Controller is responsible in designating what views would be available for users.
Please leave your comment below.