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
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it nowWhen 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.