Here is the code:
[code]
$docx = new CreateDocx();
$settings = array(
'header' => true
);
$docx->addTemplate('templates/bl_bluebrieftemplate.docx');
$docx->setTemplateSymbol('$');
$docx->addTemplateVariable('BRIEFTITLE', 'Testing Brief ' . date("H:i:s"),$settings);
$docx->addTemplateVariable('BRIEFTEMPLATE', 'dock trial of template use '. date("H:i:s"),$settings);
$docx->addTemplateVariable('BRIEFCONTENT', 'Body Content '. date("H:i:s"),$settings);
$docx->addTemplateVariable('BRIEFFOOTER', 'Footer Content ' . date("H:i:s"),$settings);
$docx->addTemplateVariable('BRIEFACCOUNT', 'Account Name '. date("H:i:s"),$settings);
$docx->addTemplateImage('BRIEFLOGO', 'path/to/file.gif',$settings);
$docx->createDocx('outputs/bluebrief_'.date("H_i_s"));
[/code]
the file renderes, and only briefcontent variable is replaced. The others are not... any ideas?