[symfony-users] Re: how to display image in template

2009-08-22 Thread asim nizam
Can any body tell me about file uploading and how to change its absolute path when saving in DB so i can display image /civil/web/uploads/assets/abc.jpg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users"

[symfony-users] Re: how to display image in template

2009-08-21 Thread asim nizam
Yes when i visit localhost/civil/web/uploads/assets/abc.jpg i see the image!! On Fri, Aug 21, 2009 at 7:13 PM, Gábor Fási wrote: > > The /var/www... path is the full path on your server, you cannot > access it via that one. Assuming your webroot is /var/www the path you > need is /civil/web/u

[symfony-users] Re: how to display image in template

2009-08-21 Thread Eno
On Fri, 21 Aug 2009, sunny wrote: > i have image src path > /var/www/civil/web/uploads/assets/abc.jpg > > which doesnot display me the image while when i change it to > /civil/web/uploads/assets/abc.jpg > it display me the image . > i need the path /var/www/civil/web/uploads/assets/abc.jpg to d

[symfony-users] Re: how to display image in template

2009-08-21 Thread Gareth McCumskey
You can read all about how symfony deals with application paths on the server by reading the book's section on sfConfig :) - Original Message - From: "sunny" To: "symfony users" Sent: Friday, August 21, 2009 2:20:02 PM GMT +02:00 Harare / Pretoria Subject: [symfony-users] how to displ

[symfony-users] Re: how to display image in template

2009-08-21 Thread Gábor Fási
The /var/www... path is the full path on your server, you cannot access it via that one. Assuming your webroot is /var/www the path you need is /civil/web/uploads/assets/abc.jpg, this is how you can access it via the browser. If you visit localhost/civil/web/uploads/assets/abc.jpg do you see the i

[symfony-users] Re: how to display image in template

2009-08-21 Thread DEEPAK BHATIA
I think you need to give the path relative to the htdocs directory for example your project is "crb" in htdocs. /opt/lampp/htdocs/crb/web/images/abc.jpg You can give path as /crb/web/images Best Regards Deepak Bhatia On Fri, Aug 21, 2009 at 5:50 PM, sunny wrote: > > i have image src path > /v