CodeIgniter Forums
?one viewer? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: ?one viewer? (/showthread.php?tid=7713)



?one viewer? - El Forum - 04-20-2008

[eluser]bigtime[/eluser]
Hi all, i have a slight problem with a CI project that i'm working on.

For some strange reason when i'm passing out multiple views (header, content, footer, etc..) its only rendering the last view, does anyone have any thoughts into why this vould be the case?


?one viewer? - El Forum - 04-20-2008

[eluser]bigtime[/eluser]
Code:
class DEF extends Controller
{    
    function DEF()
    {
        parent::Controller();
        
        $this->load->helper('url');
        $this->load->helper('form');
        $this->load->library('session');

    }    

    function index()
    {            
        $this->load->view('header');
                $this->load->view('home');    
    }
}



?one viewer? - El Forum - 04-20-2008

[eluser]louis w[/eluser]
I would call the header view from inside the home one. Normally I call just 1 view and it would make calls to any others.