Hi, Im trying to connect to a SLQ Server database, literally copy paste the documentation example and changed the connection paramenters and I get this error:
Fatal error: Uncaught Error: Class "koolreport\KoolReport" not found in C:\xampp\htdocs\reportes\liquidaciones\MyReport.php:3 Stack trace: #0 C:\xampp\htdocs\reportes\liquidaciones\index.php(2): require_once() #1 {main} thrown in C:\xampp\htdocs\reportes\liquidaciones\MyReport.php on line 3
Thanks
MyReport.php
<?php
class MyReport extends \koolreport\KoolReport
{
public function settings()
{
return array(
"dataSources"=>array(
"sqlserver"=>array(
'host' => 'XXX',
'username' => 'XXX',
'password' => 'XXX',
'dbname' => 'XXX',
'charset' => 'utf8',
'class' => "\koolreport\datasources\SQLSRVDataSource"
),
)
);
}
public function setup()
{
$this->src('sqlserver')
->query("SELECT * FROM general_area")
->params(array(":status"=>"completed"))
->pipe($this->dataStore('purchase_summary'));
}
}