Home › Forums › Back End › Loading A .docx with PHPWord › Reply To: Loading A .docx with PHPWord
July 28, 2014 at 12:26 pm
#176709
Harris Christiansen
Participant
Resolved: For some reason PHPWord does not like creating an output file for download from templates. I was able to save the document to the server ($document, not $PHPWord) and then read the document file to initiate the download.
$document->saveAs("Resources/documents/".$file);