> this is the resulting false link when i issue
> <a href="quickguide.pdf">
>
> http://localhost/cake/index.php/pages/quickguide.pdf
>
> It doesn't work, because the link is relative.
>
> Also i don't want to hardcode the absolute URL because i'm
> on my local dev machine. The site will be placed online
> (in the www root dir).

move your PDF into /app/webroot/files/ and use the cake html helper to
create the link, eg:

echo $html->link('quickguide.pdf', '/files/quickguide.pdf');

hth

jon

-- 


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to