Forum


Replies: 2   Views: 977
How to use gettemplatevariables with more than one symbol for placeholders (not using default ${})
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by joeph  · 06-08-2021 - 12:45

I have set 

->setTemplateSymbol('[', ']')

This works fine when replacing the variables. However, 

->getTemplateVariables()

returns an empty array.

Cheers,

Joep

Posted by joeph  · 09-08-2021 - 14:33

Great, works nicely!