I have set
->setTemplateSymbol('[', ']')
This works fine when replacing the variables. However,
->getTemplateVariables()
returns an empty array.
Cheers,
Joep
I have set
->setTemplateSymbol('[', ']')
This works fine when replacing the variables. However,
->getTemplateVariables()
returns an empty array.
Cheers,
Joep
Hello,
UPDATE: phpdocx 14.5 generates automatically CreateDocxFromTemplate::$regExprVariableSymbols from the custom symbols. On https://www.phpdocx.com/documentation/cookbook/good-practices-with-templates (Defining a non unique symbol for placeholders section) you can find all information.
Regards.