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

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to