PHP Class content, kirby

Inheritance: extends Admin_Controller
Datei anzeigen Open project: bastianallgeier/kirby Class Usage Examples

Public Methods

Method Description
end ( boolean $return = false ) : mixed Stops the output buffer and flush the content or return it.
load ( string $file, boolean $return = true ) : mixed Loads content from a passed file
start ( ) Starts the output buffer
type ( ) Simplifies setting content type headers

Method Details

end() static public method

Stops the output buffer and flush the content or return it.
static public end ( boolean $return = false ) : mixed
$return boolean Pass true to return the content instead of flushing it
return mixed

load() static public method

Loads content from a passed file
static public load ( string $file, boolean $return = true ) : mixed
$file string The path to the file
$return boolean True: return the content of the file, false: echo the content
return mixed

start() static public method

Starts the output buffer
static public start ( )

type() static public method

Simplifies setting content type headers
static public type ( )