title: Fatal error: Call to undefined function base_url() in C:\wamp\www\Test-CI\application\views\layout.php on line 5
body: <p>Hello I am new to CodeIgniter and PHP, I am trying to setup it for the firs time, but it give the following error.</p>
  <blockquote>
  <p>Fatal error: Call to undefined function base_url() in</p>
  <ol>
  <li><p>C:\wamp\www\Test-CI\application\views\layout.php on line 5<br />
   </p>
  </li>
  <li><p>{main}( ) IN ..\index.php:0 require_once('C:\wamp\www\Test-CI\system\core\CodeIgniter.php' ) IN ..\index.php:202</p>
  </li>
  <li><p>call_user_func_array ( ) IN ..\CodeIgniter.php:359</p>
  </li>
  <li><p>Home-&gt;index( ) IN ..\CodeIgniter.php:0</p>
  </li>
  <li><p>CI_Loader-&gt;view( ) IN ..\home.php:17</p>
  </li>
  <li><p>CI_Loader-&gt;_ci_load( ) IN ..\Loader.php:419</p>
  </li>
  <li><p>include('C:\wamp\www\Test-CI\application\views\layout.php' ) IN ..\Loader.php:833</p>
  </li>
  </ol>
  </blockquote>
  <p>My code :</p>
  <pre><code> &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv=&quot;Content-type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;
          &lt;title&gt;Galleriffic | Custom layout with external controls&lt;/title&gt;
          &lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php base_url(); ?&gt;/assets/css/basic.css&quot; type=&quot;text/css&quot; /&gt;
          &lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php base_url(); ?&gt;/assets/css/galleriffic-5.css&quot; type=&quot;text/css&quot; /&gt;
          
          &lt;!-- &lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php base_url(); ?&gt;/assets/css/white.css&quot; type=&quot;text/css&quot; /&gt; --&gt;
          &lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php base_url(); ?&gt;/assets/css/black.css&quot; type=&quot;text/css&quot; /&gt;
          
          &lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php base_url(); ?&gt;/assets/js/jquery-1.3.2.js&quot;&gt;&lt;/script&gt;
          &lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php base_url(); ?&gt;/assets/js/jquery.history.js&quot;&gt;&lt;/script&gt;
          &lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php base_url(); ?&gt;/assets/js/jquery.galleriffic.js&quot;&gt;&lt;/script&gt;
          &lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php base_url(); ?&gt;/assets/js/jquery.opacityrollover.js&quot;&gt;&lt;/script&gt;
          &lt;!-- We only want the thunbnails to display when javascript is disabled --&gt;
          &lt;script type=&quot;text/javascript&quot;&gt;
              document.write('&lt;style&gt;.noscript { display: none; }&lt;/style&gt;');
          &lt;/script&gt;
      &lt;/head&gt;
  </code></pre>