Welcome Guest, Not a member yet? Register   Sign In
?one viewer?
#1

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

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

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




Theme © iAndrew 2016 - Forum software by © MyBB