Codeigniter is not loading my view (404 Page Not Found)
<p>I have a process countroller (process.php) with index function that lists all countries supported by the logged in user. Listed countries are hyperlinked to base_url()/process/$CountryCode (e.g. <a href="http://localhost/baseurl/process/us/" rel="nofollow">http://localhost/baseurl/process/us/</a>).</p>

<p>process.php
    

<pre><code>class Process extends MY_Controller {

public function __construct() {
    parent::__construct();

    if ($this-&gt;uri-&gt;segment(2) != NULL) {
        $this-&gt;country();
    }
}

public function index() {
    $this-&gt;load-&gt;model('users');
    $data['country'] = $this-&gt;users-&gt;getSupportedCountriesByUserID();
    $data['title'] = 'Process';
    $this-&gt;load-&gt;view('process_view', $data);
}

public function country() {
    include 'country.php';
    $country = new Country;
    $country-&gt;index();
}
</code></pre>

<p>country.php</p>

<pre><code>&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Country extends MY_Controller {

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

    public function index() {

        $data['process'] = $this-&gt;getProcesses();
        $data['category'] = $this-&gt;getCategories();
        $data['title'] = "Process | " . strtoupper($this-&gt;uri-&gt;segment(2));
        /*
        echo '&lt;pre&gt;';
        print_r($data);
        echo '&lt;/pre&gt;';
        */
        $this-&gt;load-&gt;view('welcome_message');
}
</code></pre>

<p>If i uncomment the print_r, I get the data I need but in array form but has the '404 Page Not Found' below the output. It doesnt even load the 'welcome_message' view. Where did i go wrong? Please help. Thanks.</p>