Home > Backend Development > PHP Tutorial > 添加一个连接,作用是下载某个文件,在cakephp怎么实现

添加一个连接,作用是下载某个文件,在cakephp怎么实现

WBOY
Release: 2016-06-13 10:01:32
Original
894 people have browsed it

添加一个连接,作用是下载某个文件,在cakephp如何实现
目的:提供一个连接,一点连接就可以下载某个文件
例如:http://localhost/test/1.zip

不用框架的情况,我只要把文件放到/var/www/test/1.zip,在php文件里加个就可以了

可是在cakephp如何实现呢?因为cakephp会改变地址。
我应该把文件放在什么位置?这么设置?

------解决方案--------------------
接分,到cakephp的论坛上去问问吧

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template