When I try using addDOCX and addTemplate together in the same script only the template page is being added, how can both be used together?
require_once '../../classes/CreateDocx.inc';
$docx = new CreateDocx();
$docx->addTemplate('../docx/page1.docx');
$docx->addTemplateVariable('NAME', $_POST['name']);
$docx->addDOCX(array('pathDOCX' => '../docx/page2.docx'));
$docx->createDocx('../docx/audit');