SproutCMS

This is the code documentation for the SproutCMS project

function relUrl()

Returns the relative URL for a given file.

Use for content areas.

Usage

string $FilesBackendDirectory->relUrl ( int $id );

Arguments

  1. int $id
    ID of entry in files table, or (deprecated) string: filename

Return value

  • string
    e.g. file/download/123