Sunday, August 29, 2010

Re: opening a file (xls, doc, pdf etc) through a link

It will work with href.

1. Save the file within CakePHP /app/webroot/ folder.

2. Now point to that location in your href.

You should not have a problem, I hope.

On Aug 29, 2:58 pm, Tomfox Wiranata <tomfox.wiran...@gmail.com> wrote:
> hi,
>
> how can i reference to file on my hdd with cake, that this file opens
> a soon as i click the link? for example on my site there will be a
> link, shown as a icon with text. if you click the link i want cake to
> open that file...
>
> how can i do that? does it work with href somehow?
>
> looking forward to your feedback. thx

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: