Skip to content

Can we add Twig globals ? #50

@cgweeratunga

Description

@cgweeratunga

Hi,
Can we add Twig globals like Symfony in yml ?

twig:
# ...
globals:
ga_tracking: UA-xxxxx-x

I've added it like above( same as Symfony2 ) but got error message.

Catchable fatal error: Argument 1 passed to Igorw\Silex\ConfigServiceProvider::mergeRecursively() must be of the type array, object given

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions