Welcome Guest, Not a member yet? Register   Sign In
Code Igniter fresh newbie alert. Using templates as a view problem.
#1

[eluser]dazamate[/eluser]
So I've discovered code igniter and I am all excited about learning & mastering it, I hate this part where I don't know enough to perform basic tasks.

I've purchased a html template from theme forest. I copied all the theme contents into the views folder but renames the purchased theme's index.html to 'home_view.php'.

This is how I am going about loading the downloaded template page...

Code:
<?php

if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class home extends CI_Controller

  {
  public function index()
    {
      $this->load->view('home_view');
    }
  
}

?>

So now when I to to /index.php/home it does load the page, but it won't load any of the images, css or js. But I have put the templates /images and /js folder in views so they should of been accessible.

Does code igniter block including files from within the view folder? Or have I just made some dumb-ass newbie mistake.

Thanks for you time Smile

Look forward to hearing back from you guys.


Messages In This Thread
Code Igniter fresh newbie alert. Using templates as a view problem. - by El Forum - 08-17-2012, 01:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB