Categories > OpenTBS with DOCX >

Zend Framework 2 & TinyButStrong

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Fahmy
Date: 2014-04-15
Time: 11:06

Zend Framework 2 & TinyButStrong

Hi,
I use Zend Framework 2.3 (PHP 5.4.7), OpenTBS 1.9.0 and TinyButStrong 3.9.0. I want create .docx, pptx, and pdf in zend framework 2 but i get error.
Error : TinyButStrong Error with plug-in 'clsOpenTBS': no class named 'clsOpenTBS' is found, and no function named 'tbspi_clsOpenTBS_OnInstall' is found.
I was ruptured tbs_class.php to be class clsTinyButStrong include tbs_plugin_opentbs.php, clsTbsDataSource, clsTbsLocator. It is possible to use TinyButStrong in ZF2?
By: Skrol29
Date: 2014-04-16
Time: 02:03

Re: Zend Framework 2 & TinyButStrong

Hi Fahmy,

Yes you can use TBS and OpenTBS with Zend Framework  1 & 2 without problem.
TBS and OpenTBS do not follow the Zend naming convention for class and file names.
But you should not explode the files in several class, this is hazardous (wait for TBS 4, the class and file naming should be more conventional).
But You can rename the files as you wish.
For Zend Framework, you just have to force the inclusion yourself with include_once() for both files (TBS & OpenTBS) .