[symfony-users] image path

2009-12-27 Thread mirfan
hi, is that not awkward that i have to write full path of the image that i wand to display like see the following img src=/demo_project/web/images/image_name.gif / if i have to change the directory of the project that will be a blunder because i will have to change all the img path, is there any

[symfony-users] image path

2009-12-27 Thread mirfan
hi, is that not awkward that i have to write full path of the image that i wand to display like see the following img src=/demo_project/web/images/image_name.gif / if i have to change the directory of the project that will be a blunder because i will have to change all the img path, is there any

Re: [symfony-users] image path

2009-12-27 Thread Gábor Fási
http://www.symfony-project.org/api/1_2/AssetHelper#method_image_path use it like `image_path(image_name.gif)` On Sun, Dec 27, 2009 at 13:45, mirfan m.irfa...@gmail.com wrote: hi, is that not awkward that i have to write full path of the image that i wand to display like see the following

Re: [symfony-users] image path

2009-12-27 Thread Parijat Kalia
from what I recollect, I only make use of a relative path such as : /images/image_name.gif Try it and let us know if it works for ya! On Sun, Dec 27, 2009 at 6:15 PM, mirfan m.irfa...@gmail.com wrote: hi, is that not awkward that i have to write full path of the image that i wand to display