[eluser]Unknown[/eluser]
Hi, long time lurker, first time poster. :cheese:
I know CI is capable of displaying multiple views called within a controller (according to the user guide - which by the way is excellent), but I have yet to get it to work. If I use the following code taken directly from the user's guide:
Code:
<?php
class Page extends Controller {
function index()
{
$data['page_title'] = 'Your title';
$this->load->view('header');
$this->load->view('menu');
$this->load->view('content', $data);
$this->load->view('footer');
}
}
?>
...only the last view called gets displayed. In the above code example, I would only get the "footer" view displayed to the browser...none of the views before it gets displayed. Any ideas why? As a work around, I just call the other views from within a parent view. Although, it would be nice to call multiple views from the controller. I've also tried auto-loading a library class which calls separate methods for each view...no luck.
Not sure if it matters, but I'm using version 1.5.4 of CI, Apache 2.0 running PHP4 (latest version prior to 5).
Thanks in advance for any help!