class TwigEngine extends EngineAbstract (View source)

Constants

HELPERS

The helper lists

Properties

protected string $name

The engine name

protected Loader $config

The configuration loader

from  EngineAbstract

Methods

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

Details

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

Make template rendering

Parameters

string $filename
array $data

Return Value

mixed

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

Check the parsed file

Parameters

string $filename
bool $extended

Return Value

string

Exceptions

ViewException

mixed getName()

Get the engine name

Return Value

mixed

void __construct(Loader $config)

TwigEngine constructor.

Parameters

Loader $config

Return Value

void

Twig_Environment|Twig_Loader_Filesystem getTemplate()

The get engine instance

Return Value

Twig_Environment|Twig_Loader_Filesystem