Question: I am very new to CodeIgniter. I have a view with the name contact.php in views folder. Now I have a link in index.php and I want to call contact.php view through this link.

My controller Contact.php in the controllers folder :

```
class Contact extends CI_Controller{
function index(){

    $this->load->view('contact');

}

```

}

My link in index.php is

```
<a href="<?php echo site_url('contact');?>" class="last">Contact Us</a>

```

my view is not calling it give me page 404 not found..

Answer: 
```
  class ... extends CI_Controller { ... }

```

just see the name of ur class!! Its very important that matches

```
  $this->load->view("myFirstView");

```

(...)

myFirstView.php
You're missing the construct in your controller:

```
function __construct()
{
    parent::__construct();
}

```

Otherwise you are simply extending the CI\_Controller class without inheriting its properties through its construct (hence `parent::__construct();`).