title: Codeigniter 2 difference between index and __construct and what to put in __construct
body: <p>When is <strong>__construct</strong> called and when is <strong>index</strong> called? And are there any other differences? </p>
  
  <p>And what to put in <strong>__construct</strong>? Whats the best practice, should I put <strong>$this->load</strong> calls... ? what else?</p>
  
  <pre><code>class Site extends CI_Controller {
  
        public function __construct() {
  
            parent::__construct();
            echo 'Hello World2';
  
       }
  
       public function index() {
  
            echo 'Hello World1';
  
       }
  }
  </code></pre>