CodeIgniter Forums
?one viewer? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: ?one viewer? (/thread-7713.html)



?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.