title: CodeIgniter view doesn't load
body: <p>I have an on-going CI v2.0.2 app that was coded by other developers.</p>
  
  <p>I started off by creating a <code>trial</code> controller: `controllers/trial/trial.php'. The code in this controller is:</p>
  
  <pre><code>&lt;h1&gt;controller&lt;/h1&gt;
  &lt;?php
  
  class Trial extends CI_Controller {
  
      function index() {
          echo "this works";
          $this-&gt;load-&gt;view("trial/trial_view");
      }
  }
  </code></pre>
  
  <p>And the view is in <code>views/trial/trial_view.php</code>. The view has a simple <code>&lt;p&gt;this is the view&lt;/p&gt;</code> line.</p>
  
  <p>Now when I visit the URL - <code>http://localhost/ci/index.php/trial/trial</code> all I get is the <code>&lt;h1&gt;</code> tag from the controller. If I remove that tag, nothing is seen, not even the <code>echo</code> statement.</p>
  
  <p>The code base I was given is an exact replica of the app that is being used right now. I've doubly checked to make sure the folder structure is correct too.</p>
  
  <p>What should be going on here? Any config options I should look at?</p>
  
  <h2>Update--------</h2>
  
  <p>I moved <code>trial.php</code> into the <code>controllers</code> folder, and <code>trial_view.php</code> into the <code>views</code> folder. Made the appropriate changes in the code too. But the result is still the same - only the <code>h1</code> tag from the controller is displayed when I visit <code>http://localhost/ci/index.php/trial</code></p>