thanks people but this solves the purpose <a href="<?php echo public_path('/uploads/'.$support_activity->getFilePath()) ?>" target="_blank">download attachement</a>
public_path returns a url like http://localhost:8080/myproject/web/uploads/b3a2fe88caa89fa97a7443cdcf55e608.pdf exactly what was needed... any suggestions to improve ? On Mon, Sep 28, 2009 at 1:19 PM, Johnny Lattouf <johnnylatt...@gmail.com>wrote: > > You can use the function _compute_public_path($source, $dir, $ext, > $absolute = false) > > $path = _compute_public_path('myfilename', 'myfolder','','absolute'); > echo link_to('download file', $path); > > > On Sep 27, 2:54 pm, dagger <strategy.vs.lo...@gmail.com> wrote: > > Hi, > > > > A simple question... How can i create a download link to a file > > uploaded to uploads directory under web of symfony? > > > > something like - <?php echo link_to('download file', 'uploads/ > > file.pdf')?> > > > > thanks for the reply > > > > -- kind regards Farrukh K. Muhammad skype id - mobileweaver --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---