OpenTBSBundle - 找不到模板

时间:2014-10-28 17:05:57

标签: symfony templates powerpoint opentbs

// 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错误OpenTBS插件:模板'/home/chuebert/Web/garmanzky/repu/src/Bundle/UserBundle/Controller/../../../../web/tbs-templates/klinik_template.pptx'不能被发现。除非您将NoErr属性设置为true,否则该过程将结束。

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

请帮忙。

2 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:0)

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

设置了权限