SproutCMS

This is the code documentation for the SproutCMS project

function download()

Prompts a user to download a file, and terminates the script
Sets all the right headers and stuff, doesn't set caching/expires/etc headers though.

Usage

void File::download ( string $filename [, string $download_name ] );

Arguments

  1. string $filename
    The name of the file in the repository
  2. string $download_name = NULL
    An optional alternate name to provide to the user

Return value

  • void