class TwigBuilder

Class TwigBuilder.

Constants

TIMEZONE

Zona horaria para fechas en XML.

Properties

protected Environment $twig

Methods

__construct(array $options = [])

TwigBuilder constructor.

string
render(string $template, object $doc)

Get Content XML from template.

Details

at line 39
__construct(array $options = [])

TwigBuilder constructor.

Parameters

array $options [optional] Recommended: 'cache' => '/dir/cache'

at line 52
string render(string $template, object $doc)

Get Content XML from template.

Parameters

string $template
object $doc

Return Value

string