<?php echo link_to('back to the photo list', 'public/index',    
           'style=display:block;float:right;') ?>
<?php echo link_to('back to the picture details', 'public/photo?id='.$photo->getId(),    
           'style=display:block;float:left;') ?>
<h4>Your comment has been succesfully added!</h4>