mbence / opentbsbundle Goto Github PK
View Code? Open in Web Editor NEWA bundle to use OpenTBS in Symfony - to create OpenOffice and Ms Office documents with PHP.
A bundle to use OpenTBS in Symfony - to create OpenOffice and Ms Office documents with PHP.
Using the more up to date wakeasp_inc fork of this, I was suddenly getting an error 500 "the controller must return a response null given" appended to my files i got with $TBS->Show(OPENTBS_DOWNLOAD, $filename);
I was able to fix this by adding this empty response type from this answer:
https://stackoverflow.com/a/73239817/1832105
and sending it after the tbs->show
Hope this helps anybody.
[InvalidArgumentException]
Could not find package mbence/opentbs-bundle at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability
Hi, in Symfony 3.3, I get a Deprecation warning:
Autowiring services based on the types they implement is deprecated since Symfony 3.3 and won't be supported in version 4.0. You should rename (or alias) the "opentbs" service to "MBence\OpenTBSBundle\Services\OpenTBS" instead.
This is because the services.yml looks like this:
services:
opentbs:
class: MBence\OpenTBSBundle\Services\OpenTBS
arguments: []
Changing it to this resolves the warning:
services:
MBence\OpenTBSBundle\Services\OpenTBS:
arguments: []
opentbs:
alias: MBence\OpenTBSBundle\Services\OpenTBS
I don't know if this would BC break something (aliasing works at least for Symfony 2.7), but i would appreciate it, when such a change will be implemented before Symfony 4.0 is released. :)
Greets,
spackmat
Hello. Can't add plugin support. Sample code (one of the options):
$tbs = new OpenTBS();
$ok = class_exists('clsTbsAggregate', true);
$tbs->PlugIn(TBS_INSTALL, 'clsTbsAggregate');
After running the script, a notification will appear
<br /><b>TinyButStrong Error</b> with plug-in 'clsTbsAggregate': no class named 'clsTbsAggregate' is found, and no function named 'tbspi_clsTbsAggregate_OnInstall' is found.<br />
At the same time, there is a class.
https://stackoverflow.com/questions/63703461/use-composers-autoload-to-load-opentbs-plugin-for-tinybutstrong
This option did not work either. By the way, the version of "mbence / opentbs-bundle" is 1.9.7
The following code:
include_once('./src/tbs_class.php');
include_once('./src/tbs_plugin_opentbs.php');
$name = "Stephen";
$age = "30";
$TBS = new clsTinyButStrong;
$TBS->NoErr = true;
$TBS->Plugin(TBS_INSTALL, OPENTBS_PLUGIN);
$TBS->LoadTemplate('./templates/template1.rtf');
$TBS->Show(OPENTBS_DOWNLOAD, "test.rtf");
Generates these errors - http://pastebin.com/SzG0CeX7
Hii, i'm using your bundle and i'm having some issues, some variables are not detected with mergeField and mergeBlock. Have you seen this problem before?
Hi how is it possible to load clsTbsZip that extend clsOpenTBS class?
Hi,
I am trying to implement the OpenTBSBundle in my project. Locally i work with xampp on Windows, but our server runs on Ubuntu. Locally i installed all. and now the bundle and the Action in the controller work perfectly. But on Server i become an error 500. In console there are no mistakes, the folder on Server has rights r-x. And i have no ideas where can be the mistake.
Could you please help me?
Thank you in advance,
respectfully yourth,
Lena
Hi,
thanks for bundling OpenTBS for Symfony, very useful!
Just a short question: What do you suggest as a path to store the templates in. Your example-code uses no path at all. I put my templates into a /src/appBundle//Resources/OpenTBSTemplates/
folder, but I am not sure, if this is good practice.
Greets, spackmat
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.