instead of a full image tag like <img src=..... /> use the image_tag helper:

<?php echo image_tag('name_of_image.gif') ?>

On Mon, Oct 4, 2010 at 11:19 AM, ahmed shehata <[email protected]>wrote:

> thank you but how can i do that
> my images located in
> web/images
>
> 2010/10/4 Gábor Fási <[email protected]>
>
> Instead of hardcoding the urls, use the `image_path()` helper,
>> example: `image_path('icon-home.gif')`.
>>
>> 2010/10/3 ahmed shehata <[email protected]>:
>> > hi all
>> > i am a new SF student and i am developping a sample app
>> > there is a problem when i try to to show the page
>> >
>> > the problem is that images in html paage not appears
>> > this is page
>> >        <ul>
>> >          <li class="current"><a href=""><span><img SRC="/images/icon-
>> > home.gif" alt="icon" />الرئيسية</span></a></li>
>> >                  <li><a href=""><span><img SRC="/images/icon-home.gif"
>> alt="icon" /
>> >>التكويد</span></a></li>
>> >                  <li><a href=""><span><img SRC="/images/icon-
>> > ticket.gif" alt="icon" />المسافات</span></a></li>
>> >                  <li><a href=""><span><img SRC="/images/icon-
>> > people.gif" alt="icon" />الاتجاهات</span></a></li>
>> >                  <li><a href=""><span><img SRC="/images/icon-people.gif"
>> > alt="icon" />الفواتير</span></a></li>
>> >                  <li><a href=""><span><img SRC="/images/icon-people.gif"
>> > alt="icon" />أذون الصرف</span></a></li>
>> >                  <li><a href=""><span><img SRC="/images/icon-people.gif"
>> > alt="icon" />التقارير</span></a></li>
>> >        </ul>
>> >
>> > the page located in this root
>> > <!-- apps/frontend/templates/layout.php -->
>> >
>> > --
>> > If you want to report a vulnerability issue on symfony, please send it
>> to security at symfony-project.com
>> >
>> > You received this message because you are subscribed to the Google
>> > Groups "symfony users" group.
>> > To post to this group, send email to [email protected]
>> > To unsubscribe from this group, send email to
>> > [email protected]<symfony-users%[email protected]>
>> > For more options, visit this group at
>> > http://groups.google.com/group/symfony-users?hl=en
>> >
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<symfony-users%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
>
> --
> PHP Pogrammer
> My Site :
> http://www.ahmedshehata.com
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<symfony-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to