CodeIgniter First Application

To build our application we will use Model Controller View (MVC) pattern.we will use following step to creat our first application with CodeIgniter.

  1. First, we make controller create a file name "helloworldcontroller.php" within application\controllers\ and Enter following code.

  2. <?php 
    class Hellocontroller extends CI_Controller{
      function __construct()
    function index(){
  3. Next,make a view create helloview.php within application\views and Enter following code.
  4. <!DOCTYPE html>
    <h1>Welcome to CodeIgniter First Application!</h1>
  5. Now, we can test our application. Point your browser to http://localhost/CodeIgniter_2.2.0/hellocontroller You should get like this: