title: How to get base url in CodeIgniter 2.*
body: <p>In config.php</p>
  
  <pre><code>$config['base_url'] = 'http://localhost/codeigniter/';
  </code></pre>
  
  <p>In View
  </p>
  
  <pre><code>&lt;link rel="stylesheet" href="&lt;?php base_url(); ?&gt;css/default.css" type="text/css" /&gt;
  </code></pre>
  
  <p>
  <code>=&gt; Error: Call to undefined function base_url();</code> Help me</p>