Site nooSFere

Reponse

Création des réponses ou redirections.

La classe Reponse fournit toutes les fonctions qui permettent d'écrire la réponse HTTP à une requête de l'utilisateur. de formater la page demandée, une fois toutes les données obtenues et travaillées. Ces fonctions sont terminales, c'est à dire qu'elles ne rendent pas la main et devraient être les dernières appelées lors du traitement d'une requête.

Table of Contents

Properties

$twig  : Environment

Methods

__construct()  : mixed
affiche()  : mixed
interdit()  : mixed
reroute()  : mixed
style()  : mixed

Properties

$twig read-only

private Environment $twig

Methods

__construct()

public __construct(string $chemin) : mixed
Parameters
$chemin : string

affiche()

public static affiche(string $gabarit, string $titre[, array<string|int, mixed> $variables = [] ][, array<string|int, mixed> $composants = [] ][, Identite $identite = null ]) : mixed
Parameters
$gabarit : string
$titre : string
$variables : array<string|int, mixed> = []
$composants : array<string|int, mixed> = []
$identite : Identite = null

interdit()

public static interdit() : mixed

reroute()

public static reroute(string $url[, int $statut = 303 ]) : mixed
Parameters
$url : string
$statut : int = 303
On this page

Search results