[eluser]TWP Marketing[/eluser]
In your controller(s), export sub_views as html and store each in a var:
Code:
...
$view_1 = $this->load-view('view_1',$view_data,TRUE); // sub_view 1
$view_2 = $this->load-view('view_1',$view_data,TRUE); // sub_view 2
$this->load_view('main_view',$view_data); // send your main view to the browser
...
In the main view (main_view.php), use these stored vars to place your sub-view code.
Code:
...
echo $view_1;
echo $view_2;
...
I use this to create dynamic menus which change according to user input and login status