classe TwigEngine étends EngineAbstract (Voir la source)

Constantes

HELPERS

The helper lists

Propriétés

protected string $name

The engine name

protected Loader $config

The configuration loader

depuis  EngineAbstract

Méthodes

mixed
render(string $filename, array $data = [])

Make template rendering

string
checkParseFile(string $filename, bool $extended = true)

Check the parsed file

mixed
getName()

Get the engine name

void
__construct(Loader $config)

TwigEngine constructor.

Twig_Environment|Twig_Loader_Filesystem
getTemplate()

The get engine instance

Détails

mixed render(string $filename, array $data = [])

Make template rendering

Paramètres

string $filename
array $data

Valeur de retour

mixed

protected string checkParseFile(string $filename, bool $extended = true)

Check the parsed file

Paramètres

string $filename
bool $extended

Valeur de retour

string

Exceptions

ViewException

mixed getName()

Get the engine name

Valeur de retour

mixed

void __construct(Loader $config)

TwigEngine constructor.

Paramètres

Loader $config

Valeur de retour

void

Twig_Environment|Twig_Loader_Filesystem getTemplate()

The get engine instance

Valeur de retour

Twig_Environment|Twig_Loader_Filesystem