CodeIgniter Forums

Full Version: ?one viewer?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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

El Forum

[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');    
    }
}

El Forum

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