Friday, November 23, 2012

view group, photo, blog in foreach statement

hi guys,... 
is there a way of show group, blog, photo,... whichever comes in in notification table

I have a view of: 

<?php $i = 0 ?>
<?php foreach($notes as $note): ?>

  <?php echo $html->link($groupBannerShow->square($note), '/groups/view/' . $note['Group']['id'], array('escape'=>false)) ?>

  <?php echo $html->link($photoShow->square($note), '/photos/show/' . $note['Photo']['id'], array('escape'=>false)) ?>

  <?php if($i++ % 1 - 0 == 0): ?>
  <div class="clr"></div>
  <?php endif ?>
<?php endforeach ?>

and how can I do this,...? 

thanks in advance 
chris 

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: