Welcome Guest, Not a member yet? Register   Sign In
Strange loading of views...

Hi, I'm quite new to CI, so the question is:

Why, when I'm loading header straight away(header is view of course), it appears under other views, which area loaded after passing 3rd argument to view loader, and then printing them ?

If I make same action for the header view(I mean keeping it in the string and then printing) , it appear above all other views - wanted result.

Thanks Smile

view: application/views/template.php
<?php $this->load->view('header');
<?php $this->load->view('body');
<?php $this->load->view('footer');

// Controller
$this->load->view('template', $data);


Theme © iAndrew 2016 - Forum software by © MyBB