FreenetIS
 All Classes Namespaces Functions Variables Pages
Static Public Member Functions | List of all members
download Class Reference

Static Public Member Functions

static force ($filename= '', $data= '')
 Force a download of a file to the user's browser.

Member Function Documentation

static download::force (   $filename = '',
  $data = '' 
)
static

Force a download of a file to the user's browser.

This function is binary-safe and will work with any MIME type that Kohana is aware of.

Parameters
stringa file path or file name
mixeddata to be sent if the filename does not exist
Returns
void

The documentation for this class was generated from the following file: