<h1>My pictures</h1> 
<?php foreach($photos as $photo): ?> 
<div class="photo"> 
    <?php echo link_to( 
            image_tag('/uploads/thumbnail/'.$photo->getFilePath()), 
         'public/photo?id='.$photo->getId(), 
         'class=image title='.$photo->getDescription() 
        ) ?> 
    "<?php echo $photo->getDescription() ?>"  
    on <?php echo $photo->getCreatedAt() ?>
</div> 
<?php endforeach; ?>
