SproutCMS

This is the code documentation for the SproutCMS project

function download()

Renders file contents for viewing or downloading

Usage

void $FileController->download ( int $id [, string $size ] );

Arguments

  1. int $id
    ID value from files table
  2. string $size = ''
    One of the 'file.image_transformations' config options, e.g. 'small'

Return value

  • void