g v s vinayak g v s vinayak - 2 months ago 12
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.


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>