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

[eluser]Unknown[/eluser]
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
#2

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

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

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB