Welcome Guest, Not a member yet? Register   Sign In
Multiple view help
#2

[eluser]jwindhorst[/eluser]
I use that all the time, and it looks like you are using it properly. Here is the code that is working for me.
Code:
function index()
  {
    $this->load->view('header');
    $this->load->view('home_page');
    $this->load->view('footer');
  }

Try viewing your source to make sure there is not some other syntax error causing things to fail maybe?

Anyway, if anyone out there finds a way to automatically load the header first, the whatever I tell it to load, the automatically load the footer, that would be VERY cool! I hate having to call the header and footer in on every method of every controller.


Messages In This Thread
Multiple view help - by El Forum - 11-10-2008, 06:04 PM
Multiple view help - by El Forum - 11-12-2008, 02:21 PM
Multiple view help - by El Forum - 11-12-2008, 02:46 PM
Multiple view help - by El Forum - 11-12-2008, 03:42 PM
Multiple view help - by El Forum - 11-12-2008, 04:05 PM
Multiple view help - by El Forum - 11-12-2008, 04:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB