Does the getFilepath return a string value, or just echo the value ... that will explain why the filepath is displayed at first
Thomas On Sun, Apr 6, 2008 at 6:53 AM, Jill Elaine <[EMAIL PROTECTED]> wrote: > > Coolio! Yes! Your suggestion works! > > First of all, I realized I didn't need to put 'http://mysite.com' at > the beginning: as long as my filepath starts with a slash, the site > name will be added to the front of the URL. > So that made my task a bit more simple. > > > > Did you try putting parentheses around the function calls? > I tried and it works! > > Now I have <a href='<?php echo ($file->getFilepath()).($file- > >getFilename()) ?>' >Download File</a> > and this works just great! > > > > > Or assign the value of each "get" to a temporary variable before using > > those in the concatenation expression? > I did try > $filepath = $file->getFilepath(); > $filename = $file->getFilename(); > <a href='<?php echo $filepath.$filename ?>' >Download File</a> doesn't > work > <a href='<?php echo ($filepath).($filename) ?>' >Download File</a> > doesn't work either! I am still mystified but happy to have a > solution! Thank you! > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---