[eluser]pickupman[/eluser]
You can have view return their html. This is used quite a bit once your application grows, and you'll find the use for partial views. Use:
Code:
//Render html and save to string
$data['content'] = $this->load->view('dynamic_content',$data,TRUE);
By passing TRUE as the third parameter, you get the html contents returned rather than be sent to the browser. You can than process as many blocks/views as you need to and then send to a master/display view.
Code:
$data['content'] = $this->load->view('dynamic_content', $data, TRUE);
//Set a new record to be rendered and save it
$data['content'] .= $this->load->view('dynamic_content', $data, TRUE);
//Rinse and repeat as necessary
$this->load->view('page', $data); //Let's see the whole thing now