class TwigEngine extends EngineAbstract (View source)

Constants

HELPERS

Liste des helpers

Properties

protected string $name
protected Loader $config from  EngineAbstract

Methods

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

No description

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

Permet de verifier le fichier à parser

mixed
getName()

Permet de retourne le nom de template charge

__construct(Loader $config)

TwigEngine constructor.

Twig_Environment|Twig_Loader_Filesystem
getTemplate()

No description

Details

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

No description

Parameters

string $filename
array $data

Return Value

mixed

Exceptions

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

Permet de verifier le fichier à parser

Parameters

string $filename
bool $extended

Return Value

string

Exceptions

ViewException

mixed getName()

Permet de retourne le nom de template charge

Return Value

mixed

__construct(Loader $config)

TwigEngine constructor.

Parameters

Loader $config

Twig_Environment|Twig_Loader_Filesystem getTemplate()

No description

Return Value

Twig_Environment|Twig_Loader_Filesystem