El Forum
12-14-2010, 01:11 AM
[eluser]diasansley[/eluser]
The below is my controller. The problem is that it doesnt load the view. It only loads the second <div> in the view file i have pasted.
view file
thanks
The below is my controller. The problem is that it doesnt load the view. It only loads the second <div> in the view file i have pasted.
Code:
$brands = $this->m_brand_to_entry->getAllBrandsForEntry($id);
$this->content['content'] .= $this->_renderFrontendOutput('brands/_front_entry_brands_list.php',array('brands'=>$brands));
view file
Code:
<div class="entry_brand_container">
<?php
if(!empty($brands))
{
?>
<div class="entry_brand_row_header">Marken</div>
<div class="entry_brand_colum1">
<?php
$counter = 1;
foreach($brands as $brand):
?>
<?php
if(!empty($brand['name']))
{
?>
<?=anchor('entries/showAllEntries/brand/'.$brand['brand_id'], $brand['name'], array('class' => 'marken_row'));?>
<?php
$counter++;
}
endforeach;
}
?>
</div>
</div>
<p class="entry_all_links_container">
<?=anchor('brands/showAllBrands', 'alle Marken', array('id'=>'all_brands_link','class' => 'entry_all_link'));?>
<img src="<?=base_url();?>img/shared/frontend_down_arrow.jpg" alt="partition image" />
</p>
thanks