title: codeigniter controller won't load view
body: <p>I am new to coding and have fallen in love with codeigniter and recently moved from a wamp server to a LAMP server. I've extracted codeigniter into /var/www/ and set the root directory of the host in apache. I can see the codeigniter welcome page, however if I change the default controller in config.php to my controller and load this controller:</p>
  
  <pre><code>    class Site extends CI_Controller    {
  
  public function index() {
      $this-&gt;load-&gt;view('home_view');
  }
  }
  </code></pre>
  
  <p>I get this text in my browser:</p>
  
  <pre><code>$this -&gt; load -&gt; view ('home_view'); }}
  </code></pre>
  
  <p>The only line of my index function as well as a codeigniter generated 404 error below it.
  base_url() and default controller are set, codeigniter welcome page works fine, but my page does not.
  Does anyone have an idea as to why? Your help is very much appreciated.</p>