symfony2, img doesn't show
In my twig template I have
<img scr="{{ asset('bundles/jbamain/images/kanren1.png') }}" />
At runtime it becomes
<img scr="/jba/php/web/bundles/jbamain/images/kanren1.png" />
If I browse to
http://localhost/jba/php/web/bundles/jbamain/images/kanren1.png
then, the image is returned as expected.
However, the page, which has the tag doesn't show the image. I set image
file permission to 664. Also I set image width and height in css, but
still the same. What may cause this issue?
No comments:
Post a Comment