Forum


Replies: 2   Views: 2507
Catch replacevariablebytext internal warning when variable does not exists
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 FGI  · 13-10-2017 - 11:40

Thanks. I did a getTemplateVariables(), and displayed a warning if the variable did not exists in the doc.

(By the way: it was "on purpose" that I made a bad template, no worry. I wondered how your code perform if somebody changed the template. For example, if I let users update the template as needed. But thanks for the debugging proposal!)

 

Best regards,