[code]require_once '../../classes/CreateDocx.inc';
$docx = new CreateDocx();
$text = 'Lorem ipsum dolor sit amet.';
$docx->addText($text, $paramsText);
$docx->createDocxAndDownload('example_text');[/code]
but when the file is to be created I only get errors from my OFFICE WORD, it says that the file is damaged...
and if I do
[code]$docx = new CreateDocx();
$docx->addText('DOCX content');
$docx->addText('End DOCX content');
$docx->createDocx('example_docx');[/code]
I get an error from my browser, "Fatal error: Class 'JBrowser' not found in /customers/mysite.com/mysite.com/httpd.www/plugins/system/juga.php on line 176 "
(I am using Joomla, and this I am trying to put in a view, I have put it in controller before with success...I can't make any sence of this...)