Re: [symfony-users] Linking to the upload path from a template.

2010-03-15 Thread Gábor Fási
public_path(), http://www.symfony-project.org/api/1_4/UrlHelper#method_public_path On Fri, Mar 12, 2010 at 16:58, Luis Alberto Zarrabeitia zarrabei...@gmail.com wrote: Moreover, it produces the image tag, but I can't find the way to access the url (for instance, if I want to link to it). Any

Re: [symfony-users] Linking to the upload path from a template.

2010-03-15 Thread Luis Alberto Zarrabeitia
Thank you both. I hope that'll solve my problem. Luis. On Fri, Mar 12, 2010 at 1:48 PM, Gábor Fási maerl...@gmail.com wrote: public_path(), http://www.symfony-project.org/api/1_4/UrlHelper#method_public_path On Fri, Mar 12, 2010 at 16:58, Luis Alberto Zarrabeitia zarrabei...@gmail.com

Re: [symfony-users] Linking to the upload path from a template.

2010-03-14 Thread Gareth McCumskey
Why not give the following a try? ?php echo link_to(image_tag('/uploads/myimages/'.$image_name), '/uploads/myimages/'.$image_name) ? On Fri, Mar 12, 2010 at 5:58 PM, Luis Alberto Zarrabeitia zarrabei...@gmail.com wrote: On Fri, Mar 12, 2010 at 2:00 AM, Gareth McCumskey gmccums...@gmail.com

Re: [symfony-users] Linking to the upload path from a template.

2010-03-12 Thread Luis Alberto Zarrabeitia
On Fri, Mar 12, 2010 at 2:00 AM, Gareth McCumskey gmccums...@gmail.com wrote: In your template: ?php echo image_tag($sf_config-get('sf_upload_dir').'/myImages/'.$image_name) ? The $sf_config variable is a copy of the sfConfig object used in the actions. Thank you, but I'm afraid that

[symfony-users] Linking to the upload path from a template.

2010-03-11 Thread Luis Zarrabeitia
Hello. I'm new to Symfony and I decided to learn by developing a small web app. Right now, I have a form that uploads an image: 'image' = new sfValidatorFile(array( 'required' = false,

Re: [symfony-users] Linking to the upload path from a template.

2010-03-11 Thread Gareth McCumskey
In your template: ?php echo image_tag($sf_config-get('sf_upload_dir').'/myImages/'.$image_name) ? The $sf_config variable is a copy of the sfConfig object used in the actions. On Fri, Mar 12, 2010 at 12:10 AM, Luis Zarrabeitia zarrabei...@gmail.com wrote: Hello. I'm new to Symfony and I