Very odd issue. I am able to generate a document from my template perfectly, but instead of getting the filename I set, the downloadable file has the file name of the template document.
Example:
$TBS = new clsTinyButStrong;
$TBS->Plugin(TBS_INSTALL, OPENTBS_PLUGIN);
$template='templates/testing.odt';
$TBS->LoadTemplate($template);
$TBS->MergeBlock('testBlock', $testBlock);
$TBS->PlugIn(OPENTBS_DELETE_COMMENTS);
$fileName="downloadFileName.odt"; //Ultimately, instead of a static filename, I intend to use DB content, but I can't even get this static name to work
$TBS->Show(OPENTBS_DOWNLOAD, $fileName);
|
I would expect a prompt that says download "downloadFileName.odt"
Instead, it says download "testing.odt"
Any ideas where I should start looking to fix this?