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 instance by its key. Casting it to a string will return a relative link to the page.
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.

This function will be replaced by unslash() in v2.0

unslash(string $string) : string
Parameters
$string : string
Tags
codeCoverageIgnore

This function is deprecated and will be removed in a future release.

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 instance by its key. Casting it to a string will return a relative link to the page.

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