title: php codeigniter base_url not working
body: <p>I am currently using codeigniter to write out templates for a website.  The problem is that I'm trying to achieve absolute paths for attributes such as <code>href</code> and <code>src</code>, but they aren't working.  I've checked my results, and the link's and scripts point through the correct directory, so I'm not sure why there is a problem.</p>
  
  <p>This is the code I'm using below:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8"&gt;
          &lt;title&gt;Home&lt;/title&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
          &lt;meta name="description" content=""&gt;
  
          &lt;link rel="stylesheet" href="&lt;?php echo base_url() . "assets/bootstrap/css/bootstrap.css"; ?&gt;"&gt;
          &lt;link rel="stylesheet" href="&lt;?php echo base_url() . "assets/bootstrap/css/bootstrap-responsive.css"; ?&gt;"&gt;
  
          &lt;!-- HTML5 shim, for IE6-8 support of HTML5 elements --&gt;
          &lt;!--[if lt IE 9]&gt;
              &lt;script src="&lt;?php echo base_url() . "assets/html5shiv/html5shiv.js"; ?&gt;"&gt;&lt;/script&gt;
          &lt;![endif]--&gt;
  
          &lt;!-- Fav and touch icons go here --&gt;
  
  
      &lt;/head&gt;
  &lt;body&gt;
      &lt;p&gt;This comes from the header view.&lt;/p&gt;
  
      &lt;button class="btn btn-primary"&gt;Primary&lt;/button&gt;
      &lt;br /&gt;
      &lt;a class="btn btn-primary"&gt;Secondary&lt;/a&gt;
  </code></pre>
  
  <p>I can tell that this isn't working because I'm trying to use bootstrap to style two buttons, but they aren't working.  Can someone please help me figure this out?</p>
  
  <p>Oh, by the way..my base_url is <code>http://localhost/ProjectName/</code>, and I know that I have this working correctly because I have enabled the URL helper and I am able to echo the base_url.</p>