I have a controller that pulls data from a model function and stores the data in an array:
$row = $this->model_catalog_manufacturer->getAllManufacturers();
$this->data['manufacturer']= array(
'manufacturer_id' => $row['manufacturer_id'],
'name' => $row['name'],
'image' => $row['image']
);
The view simply take the array and iterates the values using a foreach loop and list items. The list items are appearing but not the text value of the array:
<ul>
<?php foreach ($manufacturer as $manuf) {?>
<li><?php echo $manuf['name'];?></li>
<?php }?>
</ul>
Any ideas why?
instead of
could you try