I am new to Symfony.
I created a layout page in which I have this :
<img src="images/header.jpg" width="790" height="228" alt="" />
but the image isn’t displayed in the page when accessed from the browser.
I put the file header.jpg in the web/images/ folder.
I thought I could learn Symfony in a week while working on a small project. is it possible ?
Use slash at the beginning like
You can also use image_tag (which is better for routing)
In the array with parameters you can add all HTML attributes like width, height, alt etc.
P.S. IT’s not easy to learn Symfony. You need much more time