API Documentation

Documentation

Table of Contents

Packages

Application

Namespaces

Hyde

Functions

hyde()  : HydeKernel
Get the available HydeKernel instance.
unslash()  : string
Remove trailing slashes from the start and end of a string.
asset()  : string
Get a relative link or URL to an asset in the media directory.
route()  : Route|null
Get a page route by its key.
url()  : string
Get a qualified URL to the supplied path if a base URL is set.

Functions

unslash()

Remove trailing slashes from the start and end of a string.

unslash(string $string) : string
Parameters
$string : string
Return values
string

asset()

Get a relative link or URL to an asset in the media directory.

asset(string $name[, bool $preferQualifiedUrl = false ]) : string
Parameters
$name : string
$preferQualifiedUrl : bool = false
Return values
string

route()

Get a page route by its key.

route(string $key) : Route|null
Parameters
$key : string
Return values
Route|null

url()

Get a qualified URL to the supplied path if a base URL is set.

url([string $path = '' ]) : string
Parameters
$path : string = ''
Return values
string

Search results