Hello,
Im installing phpdocx TRIAL in a Zend Framework 1 project, I tried in the Controller and in the Model, with this sample code:
require_once '/var/libraries/phpdocx-trial-basic-6.5/classes/CreateDocx.inc';
$docx = new CreateDocx();
$html = '<h1 style="color: #b70000">An embedHTML() example</h1>';
$html .= '<p>We draw a table with border and rawspans and colspans:</p>';
$docx->embedHTML($html);
$docx->createDocx('example_embedHTML_1');
When the script is called, the Word file is not generated and I get warnings (a lot) like:
Warning: include_once(CreateDocument.php) [function.include-once]: failed to open stream: No such file or directory in /usr/share/php/libzend-framework-php/Zend/Loader.php on line 134
Warning: include_once() [function.include]: Failed opening 'CreateDocument.php' for inclusion (include_path='.:../library/:...) in /usr/share/php/libzend-framework-php/Zend/Loader.php on line 134
Is there any other way to install phpdocx in Zend Framework 1?
Thank you.