title: Fatal error: Call to undefined method CI_Controller::CI_Controller() in C:\xampp\htdocs\CodeIgniter\application\controllers\hello.php on line 8
body: <blockquote>
    <p>Fatal error: Call to undefined method CI_Controller::CI_Controller()
    in C:\xampp\htdocs\CodeIgniter\application\controllers\hello.php on
    line 8</p>
  </blockquote>
  
  <p>I am new to framework.I got the above error in CodeIgniter while doing a small application.Please help me..My code is given below</p>
  
  <pre><code>&lt;?php 
  class Hello extends CI_Controller {
  var $name;
  var $color;
  
  function Hello()
  {
  parent::CI_Controller();
  $this-&gt;name= 'Andi';
  $this-&gt;color= 'red';
  }
  
  function you()
  {
  $data['name'] = $this-&gt;name;
  $data['color'] = $this-&gt;color;
  $this-&gt;load-&gt;views('you_view', $data);
  }
  }
  ?&gt;
  </code></pre>