Forum


Replies: 4   Views: 6961
Createdocxfromtemplate is not available
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 Ronster1975  · 23-07-2014 - 16:56

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.