Forum


Replies: 3   Views: 4641
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.

Posted by admin  · 04-01-2017 - 15:16

Hello,

As the trial package is crypted, we recommend you to test it standalone. After you have purchased a license we can help you to integrate the library; to use phpdocx with ZF 1 you can register the autoloader of the library with its own namespace.

Regards.

Posted by jfsebastian  · 05-01-2017 - 10:02

Hello,

We have different server and domain for production and development.
With the Advanced version of the library the license is per domain, how can we develop?

Finally, can you confirm us that the library (Advanced version) can be used with Zend Framework 1?

Thank you.

Posted by admin  · 05-01-2017 - 10:18

Hello,

Phpdocx can be used with any PHP framework, CMS or project. If a project uses PHP namespaces it's recommended to buy an Advanced or Premium license to be able to download a phpdocx package with namespaces (both licenses include two packages: classic (without namespaces) and namespaces (with namespaces)).

About your questions related to your domains, please contact the sales department on:

http://www.phpdocx.com/contact

Regards.