Forum


Replies: 1   Views: 1708
Fatal - invalid template extension
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 rocky9988  · 17-12-2019 - 06:08

FATAL - Invalid template extension

$theme="/Users/rocky/PhpstormProjects/leakbee/app/Report/cesi/"

$docx = new CreateDocxFromTemplate($theme,'vul_template.docx');

这是什么问题

Posted by admin  · 17-12-2019 - 07:25

Hello,

What version and license of phpdocx are you using?

That error appears when trying to use a not valid DOCX as template or the file doesn't exist. The code you are using:

$docx = new CreateDocxFromTemplate($theme,'vul_template.docx');

isn't correct. We recommend you to check the included samples and the available documentation.

Regards.