Friday, January 22, 2010

Re: HABTM View Question

hello 

use this

<?php foreach($Portfolio as $Portfolio): ?>
<div class="boxgrid captionfull">
<img src="../img/<?php echo $Portfolio['Portfolio']['img']; ?>"
width="190" height="152" />
<div class="cover boxcaption">
<h2><a href="http://www.<?php echo $Portfolio['Portfolio']['url']; ?>"
target="_blank"><?php echo $Portfolio['Portfolio']['url']; ?></a></h2>
<div class="portfolioicon">
<?php foreach($Portfolio['Portfolio']['Poweredby'] as $poweredby):?>
<div><?=$poweredby['img']?></div>
<?php endforeach; ?>
</div>
</div>
</div>
<?php endforeach; ?>

regards,
amit

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: