title: In script base_url is not working why?
body: <p>I use to write "<code>base_url</code>" in my header and footer files in CodeIgniter.
  like </p>
  
  <pre><code>href="&lt;?php echo base_url(); ?&gt;"
  </code></pre>
  
  <p>is working...</p>
  
  <p>but when i write</p>
  
  <pre><code>src="&lt;?php echo base_url(); ?&gt;"
  </code></pre>
  
  <p>is not working...</p>
  
  <p>show my controller after <code>base_url</code> and the file is not linked then.</p>
  
  <p>Why it is working in header and not working in footer although i have attached both files also.</p>