Hello,
I am looking for more information about this class.
Link http://www.omnihost.co.nz/ returns no documentation.
Do you provide a complete documentation?
Can you put an example with all the page in php? (with includes, Requires)
And folder structure of your site.
I created a folder BasicExcel by putting all the files in the archive.
I took the example of creating an xsl file in the include file xsl.php and AbstractWriter.php.
But he said he does not know the Xsl class.
"Fatal error: Class 'BasicExcel\Writer\Xsl' not found"
Here is my code:
require_once("BasicExcel/AbstractWriter.php");
require_once("BasicExcel/Writer/Xls.php");
$data = array(
array('Nr.', 'Name', 'E-Mail'),
array(1, 'Jane Smith', '
[email protected]'),
array(2, 'John Smith', '
[email protected]'));
try {
$csvwriter = new \BasicExcel\Writer\Xsl();
$csvwriter->fromArray($data);
$csvwriter->download('myfilename.csv');
}catch(Exception $e){
echo $e->getMessage();
exit;
}
Thank you