CodeIgniter Laravel PHP Example Javascript jQuery MORE Videos New
Need a Website Or Web Application Contact : +91 9437911966 (Whatsapp) Note: Paid Service

Hello world example - CodeIgniter framework

In this example we will discuss about Hello world example CodeIgniter framework PHP.

We use two file for hello world example.

  1. Hello.php (CodeIgniter\application\controllers\Hello.php )
  2. hello_world.php (CodeIgniter\application\views\hello_world.php)


defined('BASEPATH') OR exit('No direct script access allowed');  
class Hello extends CI_Controller {  
    public function index()  


<!DOCTYPE html>
<title>Hello World !</title>

<h1>Hello World !</h1>


Now run the program on your browser with the below URL: