Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 557661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:02:59+00:00 2026-05-13T12:02:59+00:00

I am new to Symfony. I created a layout page in which I have

  • 0

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 ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:03:00+00:00Added an answer on May 13, 2026 at 12:03 pm

    Use slash at the beginning like

    <img  src="/images/header.jpg" width="790" height="228" alt="" />
    

    You can also use image_tag (which is better for routing)

    image_tag('/images/header.jpg', array('alt' => __("My image")))
    

    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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to symfony. I have created a registration form using the code:
I use symfony 1.4 In my index page, I have created some fields as
I am building a Symfony project, and have created a new plug-in named sfUtilsPlugin
I am new to Symfony 1.4 I have a plugin and inside the modules
I'm still fairly new to symfony, so my apologies if this is a stupid
I have a symfony form which have created_at and updated_at field for date. But
Im new to symfony and have some simple questions. I am trying to understand
I have a form created with Symfony forms. and in the template i have
I'm pretty new to symfony/Doctrine and having some problems with querybuilder: Given this ER:
I have created a collection form in symfony 1.4 and Propel 1.5 and everything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.