I got the problem. When i use array for template
[code]
$docx = new CreateDocx();
$arraytemplate = array("Name :","My name","Email :","myemail@gmail.com");
$docx->addTemplate("template.docx");
$docx->addTemplateVariable('MYDETAIL', $arraytemplate);
$docx->createDocxAndDownload('templateresult.docx');
[/code]
When on template.docx we place $MYDETAIL$ once, it will work ok... But when place twice, it result like this
Name :
My name
Email :
myemail@gmail.com
$MYDETAIL$
$MYDETAIL$
$MYDETAIL$
$MYDETAIL$
$MYDETAIL$
Please let me know what happen ? Or we not alowe add that variable twice on document ?
Thank You
Salnan