When placing a variable in footer and replacing it with $docx->replaceVariableByText(), the variable is not replaced. Placing the variable into the body, everything works fine.
Using 6.0 professional
When placing a variable in footer and replacing it with $docx->replaceVariableByText(), the variable is not replaced. Placing the variable into the body, everything works fine.
Using 6.0 professional
Hello,
You need to set the target option as footer (by default is document). Please check the documentation available on
http://www.phpdocx.com/api-documentation/templates/replace-variable-text-Word-document
About this option.
Regards.