소스 검색

Merge pull request #1840 from iAndre89/patch-1

Fix WebPath in src image
Thomas 11 년 전
부모
커밋
35daa6c76b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Resources/doc/cookbook/recipe_image_previews.rst

+ 1 - 1
Resources/doc/cookbook/recipe_image_previews.rst

@@ -61,7 +61,7 @@ we are manipulating form fields we do this from within ``ImageAdmin::configureFo
                 $fullPath = $container->get('request')->getBasePath().'/'.$webPath;
             
                 // add a 'help' option containing the preview's img tag
-                $fileFieldOptions['help'] = '<img src="'.$webPath.'" class="admin-preview" />';
+                $fileFieldOptions['help'] = '<img src="'.$fullPath.'" class="admin-preview" />';
             }
             
             $formMapper