Hello Guys
I'm trying to use phpdocx in symfony, I followed the instructions for installing the library with composer but I can't create a word file with the method createDocxAndDownload() I get the following error:
Notice: Undefined variable: phpdocxconfig
I have an enterprise license. Where are those instructions for the enterprise and corporate license for including the namespace package like you mentioned in the previous comment?
I downloaded the trial from the download section and inserted my license key. Is that the correct way to set up the enterprise version or do I have to download it somewhere specific?
Thanks for your help!
Hello,
You need to download a new package. Please log in and download it on MYPHPDOCX page; we recommend you to download the namespaces package to work with Symfony 2.
Regards.
Hey it's me again
I downloaded now the namespace enterprise package version 4.1. Then I followed the instructions from a forum post (http://www.phpdocx.com/en/forum/default/topic/874). And again I tried to create and download a word file but I get this error now:
Runtime Notice: Declaration of FPDF::_putstream() should be compatible with TCPDF::_putstream($s, $n = 0)
My code looks like this (not complete code):
$docx = new CreateDocx(); $docx->addText('Lorem ipsum...');
What am I doing wrong?