title: css not loading
body: <p>hi i am facing problem in loading css file. </p>
  
  <pre><code>&lt;?php  //if ( ! defined("BASEPATH")) exit("No direct script access allowed");
  
  
  class Controller2 extends CI_Controller
  {
  
  
  function index()
  {
  if ($this-&gt;input-&gt;post('button'))
  $this-&gt;test();
  else 
  $this-&gt;load-&gt;view('2');
  }
  
  
  
  function test()
  {
  $this-&gt;load-&gt;view('2');
  }
  </code></pre>
  
  <p>}
  ?> </p>
  
  <p>when i first call my controller index function it is loading view "2" with proper html and css but when i press a button inside my "2" view my controller is calling another function TEST but this time test is not loading the same view with css.</p>
  
  <p>can anyone solve this?</p>