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.
I have downloaded latest version and was trying to replace DOCVariable field defined as $name$ but value was not get updated by $docx->replaceVariableByText() method.
When I dump variables using $docx->getTemplateVariables() method I can see $name$ listed as a variable but unable to replace it's value using replaceVariableByText() method.
Please let me know whether PhpDocX able to replace DOCVariable field variables defined as placeholders similar to $name$
Cheers,
Danesh