Welcome Guest, Not a member yet? Register   Sign In
Problem with views
#1

[eluser]proximo[/eluser]
I wanna try to do something like this:

Code:
<?php

class Welcome extends Controller {

    function __constructor()
    {
        parent::Controller();    
        
        $this->load->view('header', array());
    }
    
    function index()
    {
        $this->load->view('content',array());
    }
    
    function __destructor()
        {
        
        $this->load->view('footer',array());
    
    }
}
?>
But I have problem becouse there are no __destructor (white page) and this idea doesn't work :/. Someone has idea how to make this?


Messages In This Thread
Problem with views - by El Forum - 08-07-2007, 03:59 PM
Problem with views - by El Forum - 08-07-2007, 04:04 PM
Problem with views - by El Forum - 08-07-2007, 08:30 PM
Problem with views - by El Forum - 08-08-2007, 02:44 AM
Problem with views - by El Forum - 08-08-2007, 09:49 AM
Problem with views - by El Forum - 08-08-2007, 09:58 AM
Problem with views - by El Forum - 08-08-2007, 10:11 AM
Problem with views - by El Forum - 08-08-2007, 01:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB