Welcome Guest, Not a member yet? Register   Sign In
CI for dummies
#6

[eluser]minimal design[/eluser]
Keeping in mind that it's not a "do or don't" situation... this just *one way* to do it, and this is how your controller could look like

Code:
function index() {
    $data['news'] = $this->news_model->get_news();
    $data['products'] = $this->products_model->get_products();
    $this->load->view('header');
    $this->load->view('your_view', $data);
    $this->load->view('footer');
}


Messages In This Thread
CI for dummies - by El Forum - 06-04-2008, 05:43 AM
CI for dummies - by El Forum - 06-04-2008, 08:23 AM
CI for dummies - by El Forum - 06-04-2008, 08:40 AM
CI for dummies - by El Forum - 06-04-2008, 08:59 AM
CI for dummies - by El Forum - 06-04-2008, 09:04 AM
CI for dummies - by El Forum - 06-04-2008, 09:09 AM
CI for dummies - by El Forum - 06-04-2008, 09:16 AM
CI for dummies - by El Forum - 06-04-2008, 09:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB