[symfony-users] Re: how to display image in template
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 maerl...@gmail.com 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/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 image? On Fri, Aug 21, 2009 at 14:20, sunnyasim...@gmail.com 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 display my image thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: how to display image in template
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 group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: how to display image in template
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, sunnyasim...@gmail.com 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 display my image thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: how to display image in template
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 image? On Fri, Aug 21, 2009 at 14:20, sunnyasim...@gmail.com 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 display my image thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: how to display image in template
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 asim...@gmail.com To: symfony users symfony-users@googlegroups.com Sent: Friday, August 21, 2009 2:20:02 PM GMT +02:00 Harare / Pretoria Subject: [symfony-users] how to display image in template 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 display my image thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---