Replies: 5   Views: 3002
Using templates
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 smaubian  · 27-10-2011 - 17:12


I'm starting using phpdocx today and was not able to have it working using a template.
What i did is creating a very simple template.docx file (few words) and then try to load it to a phpdocx element :

require_once(LIBPATH."/phpdoc/classes/"); // where LIBPATH can be "../folder/"

if(!file_exists($template)) {
$this->setError("class createDOC render : unable to load DOC template : $template. exiting",true);

$t=new CreateDocx();

And each time the result is an "empty" docx file. I do not understand what happen. Version 2.4 (pro), i have added my key to the 'code' file and am on the correct domain www/

any help / suggestion ?.