Forum


Replies: 3   Views: 4606
Installation with zend framework 1
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 jfsebastian  · 04-01-2017 - 14:49

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.