Dear support team,
Just downloaded the instant package and querybuilder and my index.php file is like your example as follows:
<?php
//Index.php
require_once "koolreport/autoload.php";
use \koolreport\querybuilder\DB;
use \koolreport\widgets\koolphp\Table;
class MyReport extends \koolreport\KoolReport
{
use \koolreport\instant\SinglePage;
use \koolreport\clients\Bootstrap;
function settings()
{
return array(
"dataSources"=>array(
"automaker"=>array(
'connectionString'=>'mysql:host=localhost;dbname=nrp',
'username'=>'root',
'password'=>'',
'charset'=>'utf8'
),
)
);
}
function setup()
{
$this->src('automaker')->query(
DB::table("set_items")->select("item_id","item_name","item_desc","stock_soll", "list_price","stock_ist", "order","remarks","set")->toMySQL()
)
->pipe($this->dataStore("mydata"));
}
}
$report = new MyReport;
$report->start();
?>
<html>
<head>
<title>SET-Produkte</title>
</head>
<body>
<h1>Beschreibung</h1>
<?php
Table::create(array(
"dataSource"=>$report->dataStore('mydata')
));
?>
</body>
</html>
<?php $report->end(); ?>
When I try to call the index.php I get the following error message:
Parse error: syntax error, unexpected 'as' (T_AS), expecting identifier (T_STRING) in C:\xampp\htdocs\nrp_sets\koolreport\packages\querybuilder\Query.php on line 107
Any syntax error in my code above?
Kind regards,