title: Display list of images in symfony2 twig
body: <p>I have already uploaded several images in the following directory
  <i>BundleVoteBundle/web/uploads/images/nominee/ </i>
  Image name is unique.
  now i want display all of the data with corresponding image using this controller </p>
  
  <pre><code>  public function indexAction()
  {
      $nominee=  $this-&gt;getDoctrine()-&gt;getRepository('BundleVoteBundle:Nomination')-&gt;findAll();
      if(!$nominee){
          throw $this-&gt;createNotFoundException('There is no nominee in your list');
      }  else {
          return $this-&gt;render('BundleVoteBundle:Nomination:index.html.twig',array('nominees'=&gt;$nominee));
      }
  }
  </code></pre>
  
  <p>Now my question is how can i display that images in twig using for loop.
  in twig file i could display only one images using its image id.</p>
  
  <pre><code>   {% for nominee in nominees %}
      &lt;p&gt;{{nominee.name|upper}}&lt;/p&gt;
      {{nominee.path}}
  
      &lt;img src="{{asset('uploads/images/voter/52bbc07a8136e.jpeg')}}"/&gt;
  {% endfor %}
  </code></pre>