Using OpenTBS to create a doc file with php , how to download? -


after reading several articles @ on how create doc file php tried opentbs open office templates way , because fake http headers way impossible style.

i followed instructions , script returns me desired output , altough doesnt downloaded . have no errors in error_log must else.anyone allready uses ?

<?php include jpath_base . ds . 'tbs_class.php'; include jpath_base . ds . 'tbs_plugin_opentbs.php'; $tbs = new clstinybutstrong; $tbs->loadtemplate('template.htm'); $method=$_get['method']; $id=$_get['id']; $teacher=$_get['teacher']; $html=dashhelper::getstudentformfordl($method,$id,$teacher);//returns html $output_file_name = 'test.odt'; $message = $html; $tbs->show(opentbs_download, $output_file_name);//this should dl file exit(); ?> 

also ways read create doc file outdated answers. there easier way achieve ?

you're meant install opentbs plugin with

    $tbs->plugin(tbs_install, opentbs_plugin); 

after

    $tbs = new clstinybutstrong; 

Comments