classe View implémente ResponseInterface (Voir la source)

Méthodes

void
__construct(array $config)

View constructor.

static void
configure(array $config)

Load view configuration

static View
getInstance()

Get the view singleton instance

static View
parse(string $view, array $data = [])

Parse the view

getTemplate()

Get the template engine instance

setEngine(string $engine)

Set Engine

void
cachable(bool $cachabled)

Set the availability of caching system

setExtension(string $extension)

Pas de description

static bool
pushEngine(string $name, string $engine)

Ajouter un moteur de template

string
getContent()

Get rendering content

void
sendContent()

Send Response

bool
fileExists(string $filename)

Check if the define file exists

string
__toString()

__toString

static mixed
__callStatic(string $name, array $arguments)

__callStatic

mixed
__call(string $method, array $arguments)

__call

Détails

void __construct(array $config)

View constructor.

Paramètres

array $config

Valeur de retour

void

Exceptions

ViewException

static void configure(array $config)

Load view configuration

Paramètres

array $config

Valeur de retour

void

static View getInstance()

Get the view singleton instance

Valeur de retour

View

Exceptions

static View parse(string $view, array $data = [])

Parse the view

Paramètres

string $view
array $data

Valeur de retour

View

EngineAbstract getTemplate()

Get the template engine instance

Valeur de retour

EngineAbstract

View setEngine(string $engine)

Set Engine

Paramètres

string $engine

Valeur de retour

View

void cachable(bool $cachabled)

Set the availability of caching system

Paramètres

bool $cachabled

Valeur de retour

void

View setExtension(string $extension)

Pas de description

Paramètres

string $extension

Valeur de retour

View

static bool pushEngine(string $name, string $engine)

Ajouter un moteur de template

Paramètres

string $name
string $engine

Valeur de retour

bool

Exceptions

ViewException

string getContent()

Get rendering content

Valeur de retour

string

void sendContent()

Send Response

Valeur de retour

void

bool fileExists(string $filename)

Check if the define file exists

Paramètres

string $filename

Valeur de retour

bool

string __toString()

__toString

Valeur de retour

string

static mixed __callStatic(string $name, array $arguments)

__callStatic

Paramètres

string $name
array $arguments

Valeur de retour

mixed

mixed __call(string $method, array $arguments)

__call

Paramètres

string $method
array $arguments

Valeur de retour

mixed