Welcome Guest, Not a member yet? Register   Sign In
What is best structure for a big application?
#9

[eluser]Pascal Kriete[/eluser]
I don't see why you can't do the stuff you used to do in php. You can call views from another view.

So your main view is something like this:
Code:
$this->load->view('menu_view');
$this->load->view('header_view');
$this->load->view('footer_view');

If any of those contain variables set them here.
Code:
function index() {
        // generates a list of products with links to add, update or remove
        $data['products']=$this->model->product_list();
        $data['categories']=$this->model->categories_list();
        $data['section']='Product List';
        $this->load->view('main_view',$data);   //Any data you pass in will be available to all views in the main view.
    }


Messages In This Thread
What is best structure for a big application? - by El Forum - 01-14-2008, 07:09 AM
What is best structure for a big application? - by El Forum - 01-14-2008, 07:24 AM
What is best structure for a big application? - by El Forum - 01-14-2008, 09:45 AM
What is best structure for a big application? - by El Forum - 01-17-2008, 12:43 AM
What is best structure for a big application? - by El Forum - 01-17-2008, 06:33 AM
What is best structure for a big application? - by El Forum - 01-17-2008, 06:34 AM
What is best structure for a big application? - by El Forum - 01-17-2008, 07:06 AM
What is best structure for a big application? - by El Forum - 01-17-2008, 11:55 AM
What is best structure for a big application? - by El Forum - 01-17-2008, 02:14 PM
What is best structure for a big application? - by El Forum - 01-17-2008, 02:15 PM
What is best structure for a big application? - by El Forum - 01-17-2008, 03:20 PM
What is best structure for a big application? - by El Forum - 01-17-2008, 03:27 PM
What is best structure for a big application? - by El Forum - 01-17-2008, 06:55 PM
What is best structure for a big application? - by El Forum - 01-17-2008, 07:14 PM
What is best structure for a big application? - by El Forum - 01-19-2008, 08:20 PM
What is best structure for a big application? - by El Forum - 01-20-2008, 10:40 AM
What is best structure for a big application? - by El Forum - 01-21-2008, 11:19 AM
What is best structure for a big application? - by El Forum - 02-02-2008, 01:35 PM
What is best structure for a big application? - by El Forum - 02-02-2008, 03:53 PM
What is best structure for a big application? - by El Forum - 02-02-2008, 05:15 PM
What is best structure for a big application? - by El Forum - 02-02-2008, 05:51 PM
What is best structure for a big application? - by El Forum - 02-03-2008, 06:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB