Forum


Replies: 2   Views: 3388
Template variable in footnote
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 SaturnYar  · 23-09-2013 - 09:24

How can I replace template variable in footnote?



I have variable $var$ in footnote and I trying to replace it by calling $docx->addTemplateVariable('var', 'value');, but it's not working. In output document it stays $var$. However, this method works in body of document.



By the way, this variable is not even appears in list of variables, when I make call $docx->getTemplateVariables().



So, is it a bug? And how can I solve this problem?