title: Loading CSS, JS in CodeIgniter
body: <p>I am kinda newbie to CodeIgniter. Somehow I set up the development environment and ready to go. But loading the CSS, JS into page seems a lot more confusing. Before moving, I googled a lot but the <code>base_url</code> solution is not helping.</p>
  
  <p><em><strong>Part of View :</em></strong> </p>
  
  <pre><code>&lt;link href="css/bootstrap-responsive.css" rel="stylesheet"&gt;
  &lt;link href="css/jquery-ui-1.8.21.custom.css" rel="stylesheet"&gt;
  &lt;link href='css/fullcalendar.css' rel='stylesheet'&gt;
  &lt;link href='css/fullcalendar.print.css' rel='stylesheet'  media='print'&gt;
  &lt;link href='css/opa-icons.css' rel='stylesheet'&gt;
  &lt;link href='css/uploadify.css' rel='stylesheet'&gt;
  </code></pre>
  
  <p><strong>Controller :</strong> </p>
  
  <pre><code>public function dashboard()
      {
          $this-&gt;load-&gt;helper('url');
          $this-&gt;load-&gt;view('templates/css_styles');
          $this-&gt;load-&gt;view('templates/top_bar');
          $this-&gt;load-&gt;view('templates/left_menu');
          $this-&gt;load-&gt;view('pages/dashboard');
          $this-&gt;load-&gt;view('templates/footer');
          $this-&gt;load-&gt;view('templates/js_end');
      }
  public function index()
      {
          $this-&gt;load-&gt;helper(array('form'));
          $this-&gt;load-&gt;view('login');
      }
  </code></pre>
  
  <p><strong>route.php :</strong> </p>
  
  <pre><code>$route['default_controller'] = "welcome/dashboard";
  $route['404_override'] = '';
  $route['dashboard'] = 'welcome/dashboard';
  </code></pre>
  
  <p>If I put the dashboard method as default controller, the page is loading fine. But when I change it to just welcome, which is a login form and redirect to <code>welcome/dashboard</code>, the page doesn't load any CSS. Just all HTML texts. The dashboard page is just pure HTML, no PHP code written yet.</p>
  
  <p>Please help me what might causing this.</p>