title: Unable to load view error in codeigniter 3
body: <p>Controller:</p>
  
  <pre><code>class Welcome extends CI_Controller {
  
      public function __construct() 
      {
          parent::__construct();
          if(!is_logged_in()){
              redirect('admin');
          }
      }
  
      public function index()
      {
          $this-&gt;load-&gt;view('templates\sub_header');      
          $this-&gt;load-&gt;view('welcome_message');
          $this-&gt;load-&gt;view('templates\footer');
      }
  }
  </code></pre>
  
  <p>when called controller should simply load three views in sequence. Instead I keep getting error "Unable to load the requested file: templates\sub_header.php".</p>
  
  <p>Important point to note is that this code is working perfectly fine on localhost but giving issues on godaddy subdomain.</p>
  
  <p>I have defined a base url in the config file which seems to work fine.</p>
  
  <p>On other hand another controller is working just fine everywhere:</p>
  
  <pre><code>public function index()
      {
          if( is_logged_in() )
          {
              redirect('welcome');
          }
  
          $this-&gt;form_validation-&gt;set_error_delimiters('&lt;div class="text-danger"&gt;', '&lt;/div&gt;');
          $this-&gt;form_validation-&gt;set_rules('username', 'UserName', 'required');
          $this-&gt;form_validation-&gt;set_rules('password', 'Password', 'required|min_length[4]');
          $this-&gt;load-&gt;view('templates/header');
          if($this-&gt;form_validation-&gt;run() == FALSE)
          {
              $this-&gt;load-&gt;view('auth/login_view');
          }
          else
          {
              // Check the entered value against db
              $this-&gt;load-&gt;model('auth/admin_model');
              $result = $this
                      -&gt;admin_model
                      -&gt;verify_user($this-&gt;input-&gt;post('username'),$this-&gt;input-&gt;post('password'));
  
              if($result != false)
              {
  
                  $username = $this-&gt;input-&gt;post('username');
                  $status = $result-&gt;status;
  
                  if($status == 1)
                  {
                      $user_roles = $this-&gt;admin_model-&gt;get_user_access_roles($result-&gt;id);
                      $this-&gt;session-&gt;set_userdata('username', $username);
                      $this-&gt;session-&gt;set_userdata('user-management',$user_roles-&gt;user_management);
                      $this-&gt;session-&gt;set_userdata('client-information',$user_roles-&gt;client_information);
                      $this-&gt;session-&gt;set_userdata('master-metadata',$user_roles-&gt;master_metadata);
                      $this-&gt;session-&gt;set_userdata('reports',$user_roles-&gt;reports);
                      redirect('welcome');
                  }
                  else 
                  {
                      $data['error_message'] = "Account is disabled. Get in touch with system administrator !";
                      $this-&gt;load-&gt;view('auth/login_view',$data);
                  }
              }
              else
              {
                  $data['error_message'] = "Invalid UserName or Password. Try Again !";
                  $this-&gt;load-&gt;view('auth/login_view',$data);
              }
          }
          $this-&gt;load-&gt;view('templates/footer');
      }
  </code></pre>
  
  <p>Views are loaded perfectly in Admin controller but after login when admin controller redirects to welcome controller, views stop loading. Only difference between the controllers is that in Admin controller i am calling header while in welcome i am calling sub_header but both file are present inside views folder.</p>