title: Fatal error: Call to undefined function site_url()
body: <p>I am using the CodeIgniter framework for PHP. I have created a view named "login.php". Once I</p>
  
  <p>created the view, I then loaded the view inside of a function named "index" which is located</p>
  
  <p>inside a class named "CCI" that extends the Controller but I keep receiving this error: Fatal</p>
  
  <p>error: Call to undefined function site_url() in C:\wamp\www\FinalP_CCI_Clone\system</p>
  
  <p>\application\views\login.php on line 12. I don't understand the issue I an having because the</p>
  
  <p>welcome page loads fine and my second function inside of the "CCI" class loads fine as well.</p>
  
  <p>Here is some of the code:</p>
  
  <p>Controller Files:</p>
  
  <p>
  
  <pre><code>function CCI()
  {
      parent::Controller();
  }
  
  function index()
  {
      $this-&gt;load-&gt;view('login');
  }
  
  function test()
  {
      echo "Testing Data";
  }
  </code></pre>
  
  <p>}</p>
  
  <p>/* End of file login.php <em>/
  /</em> Location: ./system/application/controllers/cci.php */</p>
  
  <p>class Welcome extends Controller {</p>
  
  <pre><code>function Welcome()
  {
      parent::Controller();   
  }
  
  function index()
  {
      $this-&gt;load-&gt;view('welcome_message');
  }
  
  function test()
  {
      echo "Testing Data";
  }
  </code></pre>
  
  <p>}</p>
  
  <p>/* End of file welcome.php <em>/
  /</em> Location: ./system/application/controllers/welcome.php */</p>