0
// get the service
$TBS = $this->container->get('opentbs');
// load your template
$template = __DIR__ . '/../../../../web/tbs-templates/klinik_template.pptx';
$TBS->LoadTemplate($template, OPENTBS_ALREADY_UTF8);
// send the file
$TBS->Show(OPENTBS_DOWNLOAD, 'klinik.pptx');

我不知道如何加载模板。我收到此错误: TinyButStrong Error OpenTBS Plugin: The template '/home/chuebert/Web/garmanzky/repu/src/Bundle/UserBundle/Controller/../../../../web/tbs-templates/找不到 klinik_template.pptx'。该过程正在结束,除非您将 NoErr 属性设置为 true。

我在http://www.tinybutstrong.com/的文档中找不到帮助。我不明白如何加载我的 pptx 文件。

请帮忙。

4

2 回答 2

0

错误消息仅意味着 OpenTBS(以及 PHP)无法在'/home/chuebert/Web/garmanzky/repu/src/Bundle/UserBundle/Controller/../../../../web/tbs-templates/klinik_template.pptx'. 您必须检查它是否是模板的正确路径。

于 2014-10-28T21:36:58.663 回答
0

我已经解决了这个问题。我已经使用 chmod -R 775 tbs-templates/ 设置了权限

于 2014-10-29T07:55:30.000 回答