List Images in sonata admin bundle
I am new to Symfony & trying to list images in sonata admin bundle. But i am bit confuse how to get an object in twig file so that i can get my exact path for image source. here is my code protected function configureListFields(ListMapper $listMapper) { // $image = $this->getSubject(); $listMapper ->addIdentifier('caption') ->add('image','string', array('template' => 'swaamImageUploaderBundle:Admin:list_image.html.twig')) ; } and here is my list_image.html.twig file {% extends 'SonataAdminBundle:CRUD:base_list_field.html.twig' %} {% block field%} <img src="{{ 'uploads/images