CodeIgniter Forums

Full Version: Strange loading of views...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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

El Forum

[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