Giter Site home page Giter Site logo

opentbsbundle's People

Contributors

evalenzuela avatar marcoleong avatar mbence avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

opentbsbundle's Issues

Error 500 appended to downloaded documents

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.

With symfony 3...

[InvalidArgumentException]
Could not find package mbence/opentbs-bundle at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability

Deprecation Warning in Symfony 3.3

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

Autoload plugin

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

OpenTBS generating PHP errors

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

Problem detecting variables

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?

Using clsTbsZip

Hi how is it possible to load clsTbsZip that extend clsOpenTBS class?

Error 500

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

Best Practice for the Template-Location

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.