Why not foreach-ing ? Please give us more of your template to understand what you want to do.
Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Wed, Feb 17, 2010 at 9:17 PM, Javier Garcia <tirengar...@gmail.com>wrote: > I wrote this below inside the loop: > > <?php next($amigos_miembro) ?> > > But it doesn't work.. > > Javi > > > On 02/17/2010 08:57 PM, Stéphane wrote: > > Hi, > > next($my_collection); should work > > Cheers, > > > Before Printing, Think about Your Environmental Responsibility! > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! > > > On Wed, Feb 17, 2010 at 8:52 PM, Javier Garcia <tirengar...@gmail.com>wrote: > >> Hi, >> >> Im trying to show two elements of a Doctrine collection inside a <div> >> this way: >> >> foreach ($friends as $friend) { ?> >> >> >> <div id="photo_friend"> >> <?php echo link_to( >> image_tag( >> '/uploads/fotografias_miembros/'.$friend->getAvatar()), >> >> >> 'miembros/show?id='.$friend->getId()) ; ?> >> </div> >> >> >> <div id="name_friend"> >> <?php echo $amigo->getName(); ?> >> </div> >> >> >> <?php } ?> >> >> >> So, is there any way to go to the next element (next row) in a Doctrine >> collection? >> >> Regards >> >> Javi >> >> -- >> You received this message because you are subscribed to the Google Groups >> "symfony users" group. >> To post to this group, send email to symfony-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/symfony-users?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.