0
I’m starting at symfony and would like to know the correct way to display an image.
I’m changing the index.html.twing which is in app/Resource/view/default/ and base.html.twing which is in app/Resource/view/.
I put <img src="../../../src/AppBundle/Resources/public/imagens/logo.png" />
<img src="{{ asset('imagens/dev-total-logo.png') }}" />
How is the right way to do this?
I was putting the files in src/Appbundle/Resources/public/images/. I moved to the Web folder and it worked.
– fabricio_wm
It is not necessary to move, you can leave the files there if you want, and only use the above command to publish them. : ) The advantage is that you keep the static files separated by Bundle, without having to mix everything up.
– Rodrigo Rigotti
I used more gave error.
– fabricio_wm