[eluser]Unknown[/eluser]
First sorry for my bad English.
I am no expert in CodeIgniter, but I resolved as follows manner.
In the controller
Code:
//we asumed that $product is the array collection of products
$data['products'] = $products;
$this->layout->view("view_name",$data);
In the "view_name.php" view I only use "$this->load->view()" function
Code:
<h1>Title</h1>
<?php foreach($products as $product){
$data['product'] = $product;
$this->load->view("partial_view",$data);
} ?>
Finally in the "partial_view.php" view
Code:
<div>
<h3><?php echo $product['name'] ?></h3>
<p><?php echo $product['description'] ?></p>
</div>
I hope to help you.