Replies: 2   Views: 3239
Addtemplatevariable bugs
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 asnanblt  · 12-10-2012 - 10:17


I got the problem. When i use array for template

$docx = new CreateDocx();
$arraytemplate = array("Name :","My name","Email :","");
$docx->addTemplateVariable('MYDETAIL', $arraytemplate);

When on template.docx we place $MYDETAIL$ once, it will work ok... But when place twice, it result like this

Name :
My name
Email :

Please let me know what happen ? Or we not alowe add that variable twice on document ?

Thank You