API Documentation
Namespaces
Table of Contents
- render() : string
- Renders a view, relative to the pages/views directory. The pages directory is determined by the
- response() : ResponseHandler
- Returns the Response class which can then be used to return a specific response type.
- config() : mixed|null
- Retrieves a value from a config file given its name/key. Null returned if key not found.
- env() : string|null
- Retrieves a value from the .env file given its name/key. Null returned if key not found.
- flash() : FlashMessage
- controller() : Controller
- redirect() : mixed
- Performs either or permanent (301) or temporary (302) redirect to a specified url.
Functions
render()
Renders a view, relative to the pages/views directory. The pages directory is determined by the
render(mixed ...$args) : string
Parameters
- $args : mixed
Tags
Return values
string —response()
Returns the Response class which can then be used to return a specific response type.
response() : ResponseHandler
Tags
Return values
ResponseHandler —config()
Retrieves a value from a config file given its name/key. Null returned if key not found.
config( $key) : mixed|null
Parameters
Tags
Return values
mixed|null —env()
Retrieves a value from the .env file given its name/key. Null returned if key not found.
env( $key) : string|null
Parameters
Tags
Return values
string|null —flash()
flash() : FlashMessage
Tags
Return values
FlashMessage —controller()
controller([array<string|int, mixed> $middleware = [] ]) : Controller
Parameters
- $middleware : array<string|int, mixed> = []
Tags
Return values
Controller —redirect()
Performs either or permanent (301) or temporary (302) redirect to a specified url.
redirect( $url[, false $permanent = false ]) : mixed