[code]Fatal error: Cannot redeclare class CreateDocx in [...]/phpdocx/classes/CreateDocx.inc on line 34[/code]
Here is my source code:
[code]
require('../phpdocx/classes/CreateDocx.inc');
$d = new CreateDocx();
$d->addText('Some Text');
$d->addImage(array('name'=>'../admin-docroot/assets/images/arrow.png'));
$d->createDocxAndDownload('test');
[/code]
With logging disabled, I am given a file to download but it contains all the html on the originating page, and does NOT contain the text "Some Text".
Thanks for any help you can provide
Aaron