From 8ede1a2ecbb62577afd32996956c5feaf7ddf9b6 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 5 Oct 2011 13:34:52 -0500 Subject: replacing the old HTML user guide with a Sphinx-managed user guide --- user_guide/helpers/download_helper.html | 112 -------------------------------- 1 file changed, 112 deletions(-) delete mode 100644 user_guide/helpers/download_helper.html (limited to 'user_guide/helpers/download_helper.html') diff --git a/user_guide/helpers/download_helper.html b/user_guide/helpers/download_helper.html deleted file mode 100644 index cabacf8fe..000000000 --- a/user_guide/helpers/download_helper.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - - -Download Helper : CodeIgniter User Guide - - - - - - - - - - - - - - - - - - - - - -
- - - - - -

CodeIgniter User Guide Version 2.0.3

-
- - - - - - - - - - -
- - -
- - - -
- - -

Download Helper

- -

The Download Helper lets you download data to your desktop.

- - -

Loading this Helper

- -

This helper is loaded using the following code:

-$this->load->helper('download'); - -

The following functions are available:

- -

force_download('filename', 'data')

- -

Generates server headers which force data to be downloaded to your desktop. Useful with file downloads. -The first parameter is the name you want the downloaded file to be named, the second parameter is the file data. -Example:

- - -$data = 'Here is some text!';
-$name = 'mytext.txt';
-
-force_download($name, $data); -
- -

If you want to download an existing file from your server you'll need to read the file into a string:

- - -$data = file_get_contents("/path/to/photo.jpg"); // Read the file's contents
-$name = 'myphoto.jpg';
-
-force_download($name, $data); -
- - - - -
- - - - - - - \ No newline at end of file -- cgit v1.2.3-24-g4f1b