Welcome Guest, Not a member yet? Register   Sign In
Please help Views and routes
#5

[eluser]Sveeaa[/eluser]
Thank you.
sorry that you have to post it so many times.

yeah i kinda understood that you have to do it that way. and only think why i wanted to have seperate healder and footer where because i thought i could change the "main" view easier.

What i really wanna now is how do i change the content.


Code:
function index()
    {
        $this->data['title'] = 'Some page';
        $this->data['content'] = $this->load->view('somepage','',TRUE);
        
        $this->load->view('layout',$this->data);
    }
    
    function foo()
    {
        $this->data['title'] = 'Foo';
        $this->data['content'] = $this->load->view('somepage/foo','',TRUE);
        
        $this->load->view('layout',$this->data);
    }
}

how could a navigation look to get to that function foo. :S

best regards Svea


Messages In This Thread
Please help Views and routes - by El Forum - 10-13-2010, 05:19 AM
Please help Views and routes - by El Forum - 10-13-2010, 08:22 AM
Please help Views and routes - by El Forum - 10-13-2010, 01:24 PM
Please help Views and routes - by El Forum - 10-13-2010, 05:02 PM
Please help Views and routes - by El Forum - 10-13-2010, 05:29 PM
Please help Views and routes - by El Forum - 10-13-2010, 05:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB