Oihana PHP

RedirectsTrait

Provides a `redirects` settings array allowing a controller to define static URL redirections.

The map is populated from the controller initialization array and can be consumed by the controller to resolve redirect targets.

Tags
author

Marc Alcaraz (ekameleon)

since
1.0.0

Table of Contents

Properties

$redirects  : array<string|int, mixed>
The redirects settings.

Methods

initializeRedirects()  : void
Initialize the `redirects` property from the initialization array.

Properties

$redirects

The redirects settings.

public array<string|int, mixed> $redirects = []

Methods

initializeRedirects()

Initialize the `redirects` property from the initialization array.

public initializeRedirects([array<string|int, mixed> $init = [] ]) : void

Reads the ControllerParam::REDIRECTS key, defaulting to an empty array when absent.

Parameters
$init : array<string|int, mixed> = []

Optional initialization array.

On this page

Search results