I have an on-going CI v2.0.2 app that was coded by other developers.
I started off by creating a trial controller: `controllers/trial/trial.php'. The code in this controller is:
<h1>controller</h1>
<?php
class Trial extends CI_Controller {
function index() {
echo "this works";
$this->load->view("trial/trial_view");
}
}
And the view is in views/trial/trial_view.php. The view has a simple <p>this is the view</p> line.
Now when I visit the URL - http://localhost/ci/index.php/trial/trial all I get is the <h1> tag from the controller. If I remove that tag, nothing is seen, not even the echo statement.
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.
What should be going on here? Any config options I should look at?
Update--------
I moved trial.php into the controllers folder, and trial_view.php into the views folder. Made the appropriate changes in the code too. But the result is still the same - only the h1 tag from the controller is displayed when I visit http://localhost/ci/index.php/trial