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.
When installed manually or via Composer in our Symfony2 project, we cannot use the CreateDocxFromTemplate class. Whilst the following works:
$docx = new \CreateDocx();
the following does not:
$docx = new \CreateDocxFromTemplate('path\to\some\template.docx');
CreateDocxFromTemplate is simply not available. What are we doing wrong? We cannot upgrade to the paid-for version unless we can achieve template variable replacement, and there is apparently no way to load a template into the CreateDocx object that doesn't completely replace its contents as soon as any action is performed on it.