API Documentation
Table of Contents
Namespaces
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
hyde()
Get the available HydeKernel instance.
hyde() : HydeKernel
Return values
HydeKernelunslash()
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
Return values
stringasset()
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
stringroute()
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|nullurl()
Get a qualified URL to the supplied path if a base URL is set.
url([string $path = '' ]) : string
Parameters
- $path : string = ''