title: Unable to load the requested file - CodeIgniter
body: <p>I'm trying to include a PHP file called <code>includes.php</code> which is not contained within the normal Views folder. The file contains links to the JS files to be loaded with this particular theme. <code>includes.php</code> resides within the <code>scripts</code> folder:</p>
  
  <pre><code>| assets |
           | themes
                    | theme_name
                                 | css
                                 | img
                                 | scripts
  | application
  | system
  </code></pre>
  
  <p>In my controller I'm using <code>$this-&gt;load-&gt;helper('url')</code> which always works fine, and within the View I'm trying to call the following:</p>
  
  <pre><code>$includes_url = asset_url() . 'themes/' . $theme . '/scripts/includes.php';
  $this-&gt;load-&gt;file($includes_url);
  </code></pre>
  
  <p>The URL seems correct as when I echo <code>$includes_url</code> the path is fine.</p>
  
  <p>Despite this, I'm getting the error:</p>
  
  <pre><code>An Error Was Encountered
  Unable to load the requested file: includes.php
  </code></pre>
  
  <p>What other issues could there be besides Code Igniter not finding the file with that filepath? Have I missed something obvious?</p>