cakephp - Download a file from some parent directory -


i download file located in parent directory of application.

i want download file : /mydirectory/myfile.ext application located : /www/app/

i've tried things : $this->html->link('test','../../../mydirectory/myfile.ext') doesn't seem work...

is want possible ?

thanks

create symbolic link in app's webroot directory want allow access files on server:-

ln -s source_directory link_directory 

this provide access directory webroot.

you can link files:-

echo $this->html->link('test', 'link_directory/myfile.ext'); 

Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -