g v s vinayak g v s vinayak -4 years ago 208
PHP Question

How to access files in data folder in zend framework?

currently i am working on zf2. Right now i have to give download option to download pdf files.i have stored all the pdf files in

directory.How can i specify link to that pdf files from .phtml file?

thanks in advance.

Answer Source

I would create a symbolic link in public directory for PDF files in data folder.

For example:

ln -s /your/project/data/pdfdir /your/project/public/pdf

and create links something like

<a href="/pdf/file.pdf">File.pdf</a>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download