做下载页面,怎么做呢?呵呵代码如下,很简单。ci用户手册中用介绍:
$this->load->helper('download'); $data = file_get_contents(APPPATH."download/setup.exe"); $name = 'setup.exe'; force_download($name, $data);